Python exam 2 - Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about Python exam 2? On this page you'll find 322 study documents about Python exam 2.
Page 2 out of 322 results
Sort by
-
Python Exam 2023 with 100% correct answers
- Exam (elaborations) • 13 pages • 2023
- Available in package deal
-
- $17.49
- + learn more
Which of the following are operators, and which are values? 
* 
'hello' 
-88.8 
- 
/ 
+ 
5 
The operators are +,-,*,and /. The values are 'hello' ,-88.8, and 5. 
 
 
 
Which of the following is a variable , and which is a string ? 
spam 
'spam' 
The variable is spam; the string is 'spam'. Strings always start and end with quotes. 
 
 
 
Name three data types. 
The three data types are integers, floating point numbers, and strings. 
 
 
 
What is an expression made up of ? What do all exp...
-
python exam 2 questions and answers
- Exam (elaborations) • 4 pages • 2024
- Available in package deal
-
- $10.49
- + learn more
python exam 2 questions and answers 
if you were writing your source code in the JavaScript programming language, what file 
extension would you use to save your file? - Correct Answer️️ -.js 
What is the standard extension to use for a python code file? - Correct Answer️️ -.py 
if you were developing an application for an iPhone, which IDE would you use? - 
Correct Answer️️ -XCode 
Which IDE feature allows you to get code suggestions while you are typing? - Correct 
Answer️️ -In...
-
WGU C859 Python Exam 2023-2024 Questions and Complete Elaborations 100% Correct
- Exam (elaborations) • 13 pages • 2023
- Available in package deal
-
- $10.99
- + learn more
WGU C859 Python Exam 2023-2024 Questions and Complete Elaborations 100% CorrectWGU C859 Python Exam 2023-2024 Questions and Complete Elaborations 100% CorrectWGU C859 Python Exam 2023-2024 Questions and Complete Elaborations 100% CorrectWGU C859 Python Exam 2023-2024 Questions and Complete Elaborations 100% Correct 
 
Minimum field width with strings - ANSWER - print('Student name (%5s)' % 'Bob' 
the 5 specifies that there are a minimum of 5 characters and thus the print out would be ( Bob) ...
-
PCEP|Certified Entry-Level Python Programmer Certification Exam 2024
- Exam (elaborations) • 4 pages • 2023
-
- $10.99
- + learn more
PCEP|Certified Entry-Level Python Programmer Certification Exam 2024
-
Python Exam 2023 with 100% correct answers
- Exam (elaborations) • 7 pages • 2023
- Available in package deal
-
- $15.49
- + learn more
Which of the following is correct about Python? 
 
a. Python is a high-level, interpreted, interactive and object-oriented scripting language. 
b. Python is designed to be highly readable. 
c. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. 
d. All of the above 
d. All of the above. 
 
 
 
Is Python case sensitive when dealing with identifiers? 
 
a. yes 
b. no 
c. it depends on context 
d. it depends ...
Make study stress less painful
-
Python Exam 2 Study Questions with Complete solutions for new updates
- Exam (elaborations) • 6 pages • 2024
-
- $7.99
- + learn more
Functions - group of statements that exist within a program for the purpose of performing a 
specific task 
 Divide and conquer - Instead of writing 1 large program, break it down into individual tasks. 
individuals or teams can works independently on separate tasks. 
 Advantages of divide and conquer - Simpler for programmers 
code reuse 
better testing 
faster development 
 void function - executes statements, nothing is put into it by the program, and it sends 
nothing back to the main pro...
-
Python Exam 2 2023 with 100% correct answers
- Exam (elaborations) • 5 pages • 2023
- Available in package deal
-
- $17.49
- + learn more
Which of the following functions does not belong to the random function 
pi 
 
 
 
The _________ of a variable refers to the program parts where the variable can be accessed 
Scope 
 
 
 
A statement in one function can access a local variable in another function. 
False 
 
 
 
The _________ keycard is ignored by python interpreter and can be used as a placeholder for code that will be written later 
Pass 
 
 
 
This standard library function returns a random floating-point number in the range o...
-
CS 1101 Programming Fundamentals Final Exam Review with Complete Solutions
- Exam (elaborations) • 24 pages • 2024
- Available in package deal
-
- $9.99
- + learn more
CS 1101 Programming Fundamentals 
Final Exam Review with Complete 
 
Solutions 
 
What output will the following Python program produce? 
 
n = 10000 
count = 0 
while n: 
 
count = count + 1 
n = n / 10 
n=int(n) 
print(count) 5 
 
What output will the following Python commands produce? 
 
>>> percentage = float ( 60 * 100) / 55 
>>> print (percentage) 109. 
 
What does the following Python 3 function do? 
 
def subroutine(n): 
while n > 0: 
print (n,) 
n -= 1 Counts from n...
-
Python Exam 2 Study Questions with Complete solutions for new updates
- Exam (elaborations) • 6 pages • 2024
-
- $7.99
- + learn more
Functions - group of statements that exist within a program for the purpose of performing a 
specific task 
 Divide and conquer - Instead of writing 1 large program, break it down into individual tasks. 
individuals or teams can works independently on separate tasks. 
 Advantages of divide and conquer - Simpler for programmers 
code reuse 
better testing 
faster development 
 void function - executes statements, nothing is put into it by the program, and it sends 
nothing back to the main pro...
-
Python Exam 2023 with 100% correct answers
- Exam (elaborations) • 6 pages • 2023
- Available in package deal
-
- $16.49
- + learn more
Which of the following statements is true about comments in coding? 
Comments are a form of communication with other programmers (including yourself) 
 
 
 
In the following line of Python code, what is the argument to the input function? 
user_status = input("How are you today?") 
"How are you today?" 
 
 
 
Which symbol is used to assign a value to a variable in Python? 
= 
 
 
 
Which of the following is not a valid variable name in Python? 
my_2_cents 
 
 
 
In Python, whole numbers like...
Study stress? For sellers on Stuvia, these are actually golden times. KA-CHING! Earn from your study resources too and start uploading now. Discover all about earning on Stuvia