• 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 4 out of 49 pages
Exam (elaborations)

Cs 1101 Programming Questions With 100% Correct Answers

Document preview thumbnail
Preview 4 out of 49 pages

CS 1101 PROGRAMMING QUESTIONS WITH 100% CORRECT ANSWERS

Content preview

What is: To join two operands end-to-end.


Give this one a try later!


concatenate




What output will the following Python statements produce?
>>> print (2*(3 - 1))
Select one:
a. 6
b. 5
c. 4
d. 3


Give this one a try later!

, c. 4




What is the output of the Python code below?
my_list = [3, 2, 1]
print(my_list.sort())
Select one:
a. 0
b. {1, 2, 3}
c. None
d. syntax error
e. [1, 2, 3]


Give this one a try later!


c. None




Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text ">>>" called?
Select one:
a. a function
b. an operator
c. a prompt
d. a statement
e. a value


Give this one a try later!

, c.
a prompt




Assume that d is a Python dictionary. What does the following Python code produce?
result = dict()
for key in d:
val = d[key]
if val not in result:
result[val] = [key]
else:
result[val].append(key)
Select one:
a. a histogram
b. an inverted dictionary
c. a list of tuples
d. a lookup
e. a reverse lookup


Give this one a try later!


b. an inverted dictionary




What is the output of the following Python program?
fruit = "banana"
letter = fruit[1]
print (letter)
Select one:
a.b
b.a
c.n
d.banana


Give this one a try later!

, b.a




Which one of the following Python expressions generates a syntax error?
Select one:
a. 8 ^ 2
b. 8 ** 2
c. 8 +- 2
d. 8 += 2
e. 8 -+ 2


Give this one a try later!


d. 8 += 2




What is the output of the Python code below?
my_tup = (3, 2, 1, 2)
print(tuple(sorted(my_tup)))
Select one:
a.(1, 2, 3)
b.{1, 2, 2, 3}
c.(1, 2, 2, 3)
d.syntax error
e.[1, 2, 2, 3]


Give this one a try later!


c.(1, 2, 2, 3)

Document information

Uploaded on
July 22, 2026
Number of pages
49
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