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 328 study documents about Python exam 2.
Page 2 out of 328 results
Sort by
-
Python Exam 2 Revision Questions and Answers 2024
- Exam (elaborations) • 11 pages • 2024
-
- $10.49
- + learn more
If a file with the specified name already exists when the file is opened and the file is opened in 
'w' mode, then an alert will appear on the screen. - False 
 When a piece of data is read from a file, it is copied from the file into the program - false 
 closing a file disconnects the communication between the file and the program - true 
 In python, there is nothing that can be donee if the program tries to access a file to read that 
does not exist - false 
 Python allows the programmer...
-
PYTHON exam 2023 with 100% correct answers
- Exam (elaborations) • 13 pages • 2023
-
Available in package deal
-
- $17.49
- + learn more
The following code represents a ________________ if structure. 
 
if a >= 1: 
if a == 1: 
nested 
 
 
 
Which line of code sets the value of the variable take_home to 500? 
take_home == 1500 / (1 + 2) 
take_home = 250 * 6 / 1 + 2 
take_home = 250 * (5 % 3) 
take_home = 250 * 5 - 3 
take_home = 250 * (5 % 3) 
 
 
 
Given the code 
message = "Your percentage score of " 
percentage = "95.6" 
letter_grade = "% is an A grade." 
 
What is the correct code to display the following result? 
You...
-
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) ...
And that's how you make extra money
-
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...
-
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
-
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) • 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 ...
Did you know that on average a seller on Stuvia earns $82 per month selling study resources? Hmm, hint, hint. Discover all about earning on Stuvia