Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

best of the best document which I use for, Lab Reports of Theatre

this document is mainly prepared for

Typology: Lab Reports

2022/2023

Uploaded on 03/07/2023

gech-deb
gech-deb 🇺🇸

4 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1/23/23, 3:37 PM
Python-For-Everybody-Answers/Week 4 Chapter 2.txt at master · Kalpesh14m/Python-For-Everybody-Answers · GitHub
https://github.com/Kalpesh14m/Python-For-Everybody-Answers/blob/master/1-Programming-for-Everybody-Getting-Started-with-Python/Quiz/Week 4 …
1/1
1.Which of the following is a comment in Python?
==> # This is a test
2.What does the following code print out?
print("123" + "abc")
==> 123abc
3.Which of the following variables is the "most mnemonic"?
==> x
4.Which of the following is not a Python reserved word?
==> spam
5.Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following statement d
x = x + 2
==> Retrieve the current value for x, add two to it, and put the sum back into x
6.Which of the following elements of a mathematical expression in Python is evaluated first?
==> Parentheses ( )
7.What is the value of the following expression
42 % 10
==> 2
8.What will be the value of x after the following statement executes:
x = 1 + 2 * 3 - 8 / 4
==> 5.0
9.What will be the value of x when the following statement is executed:
x = int(98.6)
==> 98
10.What does the Python input() function do?
==> Pause the program and read data from the user
11.In the following code, print(98.6) What is “98.6”?
==> A constant
12.Which of the following is a bad Python variable name?
==> spam.23

Partial preview of the text

Download best of the best document which I use for and more Lab Reports Theatre in PDF only on Docsity!

1/23/23, 3:37 PM Python-For-Everybody-Answers/Week 4 Chapter 2.txt at master · Kalpesh14m/Python-For-Everybody-Answers · GitHub

https://github.com/Kalpesh14m/Python-For-Everybody-Answers/blob/master/1-Programming-for-Everybody-Getting-Started-with-Python/Quiz/Week 4 … 1/

1.Which of the following is a comment in Python? ==> # This is a test

2.What does the following code print out? print("123" + "abc") ==> 123abc

3.Which of the following variables is the "most mnemonic"? ==> x

4.Which of the following is not a Python reserved word? ==> spam

5.Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following statement d x = x + 2 ==> Retrieve the current value for x, add two to it, and put the sum back into x

6.Which of the following elements of a mathematical expression in Python is evaluated first? ==> Parentheses ( )

7.What is the value of the following expression 42 % 10 ==> 2

8.What will be the value of x after the following statement executes: x = 1 + 2 * 3 - 8 / 4 ==> 5.

9.What will be the value of x when the following statement is executed: x = int(98.6) ==> 98

10.What does the Python input() function do? ==> Pause the program and read data from the user

11.In the following code, print(98.6) What is “98.6”? ==> A constant

12.Which of the following is a bad Python variable name? ==> spam.