100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CS 1101: Programming Fundamentals Exam Questions And Answers (Verified And Updated)

Rating
-
Sold
-
Pages
40
Grade
A+
Uploaded on
11-05-2024
Written in
2023/2024

CS 1101: Programming Fundamentals Exam Questions And Answers (Verified And Updated) Consider the following Python program. fin = open('') for line in fin: word = () print(word) What does the program loop over? a. Lines in a file b. Lines in a list c. Words in a dictionary d. Words in a list e. Words in a string - answera. Lines in a file Assume the following Python code has already executed. import os cwd = d() Which answer is most likely output from the following Python statement? e(cwd) a. ['Music', 'Pictures', 'Desktop', 'Library', 'Documents', 'Downloads'] b. False c. True d. /Users/me e. /Users/me/Documents/ - answerb. False Assume the following Python code has already executed. import os cwd = d() Which answer is most likely output from the following Python statement? th(cwd) Select one: a. ['Music', 'Pictures', 'Desktop', 'Library', 'Documents', 'Downloads'] b. False c. True d. /Users/me e. /Users/me/Documents/ - answerd. /Users/me What is the output from the following interactive Python statement? >>> '%g' % (0,1) a. '0' b. '0.1' c. TypeError: float argument required, not str d. TypeError: not all arguments converted during string formatting e. TypeError: not enough arguments for format string - answerd. TypeError: not all arguments converted during string formatting What is the output of the following Python program? try: fin = open('') ('Yes') except: print('No') print('Maybe') Select one: a. Yes b. No c. Maybe d. YesMaybe e. NoMaybe - answere. NoMaybe What is the output of the Python code below? print('%d + %d + %d = %d' % (1, 2, 3, 1+2+3)) a. 6 b. (1 + 2 + 3 = 6) c. None d. 1 + 2 + 3 = 6 e. "1 + 2 + 3 = 6" - answerd. 1 + 2 + 3 = 6 Which of the following Python stateme

Show more Read less
Institution
CS 1101
Course
CS 1101











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS 1101
Course
CS 1101

Document information

Uploaded on
May 11, 2024
Number of pages
40
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

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.
TheStar Florida State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
590
Member since
1 year
Number of followers
178
Documents
23589
Last sold
3 days ago
Stuvia Prodigy

Tested, Verified and Updated Study Materials with 100% Guaranteed Success.

3.8

119 reviews

5
56
4
21
3
21
2
4
1
17

Recently viewed by you

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

Frequently asked questions