• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

Cs 1101 Questions With 100% Correct Answers..

Document preview thumbnail
Preview 3 out of 25 pages

CS 1101 QUESTIONS WITH 100% CORRECT ANSWERS

Content preview

A program stored in a file (usually one that will be interpreted).


Give this one a try later!


script




What will the output of this python program be?
def test_function( length, width, height):
print ("the area of the box is ",lengthwidthheight)
return lengthwidthheight
l = 12.5
w=5
h=2
test_function(l, w, h)
a. The area of the box is 125
b. The area of the box is 125.0

,c. The area of the box is 120
d. 125.0


Give this one a try later!


b. The area of the box is 125.0




The meaning of a program.


Give this one a try later!


semantics




What output will the following code produce?
n = 10
while n != 1:
print (n,end=' ')
if n % 2 == 0: # n is even
n = n // 2
else: # n is odd
n=n*3+1
a. 10 5 16 8 4 2
b. None an error will be displayed
c. 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2


Give this one a try later!


a. 10 5 16 8 4 2

, If you assign the result a void function to a variable in Python, you get:
a. an empty string
b. the value -1
c. the value 0
d. the special value None
e. an exception


Give this one a try later!


d. the special value None




Handling an exception with a try statement is called throwing an exception.
True
False


Give this one a try later!


False




A property of a program that can run on more than one kind of computer.


Give this one a try later!


portability




What is the output of the following statements?
pi = int(3.14159)

Document information

Uploaded on
July 22, 2026
Number of pages
25
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$10.50

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TestITandFixIT
3.7
(13)
Sold
58
Followers
0
Items
7529
Last sold
2 weeks ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions