Computer Science > EXAM > PROGRAMMIN CS1101CS_1101_-_AY2020-T4_Final_Exam_(Days_1_-_4)_Review_Quiz.pdf with correct answers (All)
: To create a new object that has the same value as an existing object is know as creating an alias. Select one: True False Yoshiki Yamakita Home My courses CS 1101 - AY2020-T4 Final... Exam (Days 1 - 4) Review Quiz / Question 2 Correct Mark 1.00 out of 1.00 Given the following code, what will the output be? mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years", "for"] a=0 while a < 7: print (mylist[a],) a += 2 Select one: a. now is the time b. now is the time for c. for score and seven years d. now four is score the and seven time years for Question 3 Correct Mark 1.00 out of 1.00 Given a Python dictionary d and a value v, it is ecient to nd the corresponding key: d[k] = v. Select one: True False / Question 4 Correct Mark 1.00 out of 1.00 What output will the following python commands produce: x=1 y=2 if x == y: print (x, "and", y, "are equal") else: if x < y: print (x, "is less than", y) else: print (x, "is greater than", y) Select one: a. 1 and 2 are equal b. 1 is less than 2 c. 1 is greater than 2 d. 2 is greater than 1 Question 5 Correct Mark 1.00 out of 1.00 Which one of the following Python expressions has the value 64? Select one: a. 8 ^ 2 b. 8 ** 2 c. 8 +- 2 d. 8 += 2 e. 8 -+ 2 Your answer is correct. [Show More]
Last updated: 1 year ago
Preview 1 out of 16 pages
Instant download
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
Connected school, study & course
About the document
Uploaded On
Jun 07, 2021
Number of pages
16
Written in
This document has been written for:
Uploaded
Jun 07, 2021
Downloads
0
Views
53
In Browsegrades, 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 © Browsegrades · High quality services·