Programming > QUESTIONS & ANSWERS > PCAP 31-03 Test Questions & Answers (All)

PCAP 31-03 Test Questions & Answers

Document Content and Description Below

PCAP 31-03 Test Questions & Answers What will be the value of the variable when the while e loop finishes its execution? i = 0 while i != 0: i = i-0 else: i = i+1 a. 1 b. 0 c. 2 d. the varia... ble becomes unavailable - ANS - a. 1 And operator able to perform bitwise shifts is coded as (select 2 answers) a. -- b. ++ c. << d. >> - ANS - c. << and d. >> What will the value of the i variable be when the following loop finishes its execution? for i in range(10): pass a. 10 b. the variable becomes unavailable c. 11 d. 9 - ANS - d. 9 The following expression 1 + -2 is: a. equal to 1 b. invalid c. equal to 2 d. equal to -1 - ANS - d. equal to -1 A compiler is a program designed to (select 2 answers) a. rearrange the source code to make it clearer b. check the source code in order to see if its correct c. execute the source code d. translate the source code into machine code - ANS - b. check the source code in order to see if its correct d. translate the source code into machine code What is the output of the following code? a = 'ant' b = "bat" c = 'camel' print(a, b, c, sep='"') a. ant'bat'camel b. ant"bat"camel c. antbatcamel d. print(a, b, c, sep="~"') - ANS - b. ant"bat"camel [Show More]

Last updated: 1 year ago

Preview 1 out of 40 pages

Add to cart

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

We Accept:

We Accept

Reviews( 0 )

$10.50

Add to cart

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
46
0

Document information


Connected school, study & course


About the document


Uploaded On

Oct 14, 2022

Number of pages

40

Written in

Seller


seller-icon
Nutmegs

Member since 3 years

578 Documents Sold


Additional information

This document has been written for:

Uploaded

Oct 14, 2022

Downloads

 0

Views

 46

Document Keyword Tags


$10.50
What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·