Computer Science > EXAM > CS 1101 Programming Fundamentals - Term 2, 2019-202Home. My courses , CS 1101 - AY2020-T2 .Final Exa (All)

CS 1101 Programming Fundamentals - Term 2, 2019-202Home. My courses , CS 1101 - AY2020-T2 .Final Exam (Days 1 - 4). Final Exam0

Document Content and Description Below

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: 2 years ago

Preview 1 out of 17 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Also available in bundle (1)

computer programming questions and answers

exam questions and correct answers

By Prof.Pierro 4 years ago

$13

12  

Reviews( 0 )

$7.50

Buy Now

We Accept:

We Accept

Instant download

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

105
0

Document information


Connected school, study & course


About the document


Uploaded On

Jun 11, 2021

Number of pages

17

Written in

Seller


seller-icon
Prof.Pierro

Member since 4 years

255 Documents Sold

Reviews Received
31
7
3
0
0
Additional information

This document has been written for:

Uploaded

Jun 11, 2021

Downloads

 0

Views

 105

Document Keyword Tags

Recommended For You

Get more on EXAM »

$7.50
What is Scholarfriends

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 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 © Scholarfriends · High quality services·