Computer Science > EXAM > CS 1101 Programming Fundamentals - Term 2 final exam with 30 Questions & Answers. (All)
What is the output of the Python code below? my_list = [3, 2, 1] print(my_list) Select one: a. 0 b. {3, 2, 1} c. None d. syntax error e. [3, 2, 1] Assume that d is a Python dictionary. What d... oes the following Python code produce? d.items() Select one: a. a histogram b. an inverted dictionary c. a list of tuples d. a lookup e. a reverse lookup Assuming variable i has been created with value 2, what does the Python code below output? def myf(s, n): global i print(s * i * n) myf('hi-', 3) Select one: a. hi-hi-hi-hi-hi-hib. hi-hi-hic. hid. hi-hie. Syntax error An error in a program that makes it do something other than what the programmer intended is called: Select one: a. a syntax error b. a semantic error c. an exception d. a user error e. a side-e!ect A development approach that is intended to avoid a lot of debugging by only adding and testing small amounts of code at a time is called: Select one: a. structured development b. incremental development c. unit testing d. systems development life cycle [Show More]
Last updated: 4 months ago
Preview 4 out of 17 pages
Loading document previews ...
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 07, 2021
Number of pages
17
Written in
This document has been written for:
Uploaded
Jun 07, 2021
Downloads
0
Views
120
In Scholarfriends, 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're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·