- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 26 study documents about .
26 results
Exam (elaborations)
Python Final Exam Review Multiple Choice Study Test.
Python Final Exam Review Multiple Choice Study Test. 
 
 
What is the fundamental question of computer science? - CORRECT ANSWER What can be computed 
 
An algorithm is like a - CORRECT ANSWER recipe 
 
A problem is intractable when - CORRECT ANSWER it is not practical to solve 
 
Which of the following is not an example of secondary memory? - CORRECT ANSWER RAM 
 
Computer languages designed to be used and understood by humans are - CORRECT ANSWER high-level languages 
 
A statement is - C...
Exam (elaborations)
Python Exam Questions Correctly Answered.
PopularPython Exam Questions Correctly Answered. 
 
 
What type of variable is the 'x' in the following code? 
x='15' - CORRECT ANSWER String 
 
While performing the Echo Communication home project, the command t() crashed the script. 
What could be the problem? - CORRECT ANSWER The accept() command was not assigned with two variables. 
 
When accepting data in client-server communication, what is the meaning of recv(2048)? - CORRECT ANSWER The limit for the amount of bytes to accept. 
 ...
Exam (elaborations)
PYTHON Exam 1 Review Practice Test.
PYTHON Exam 1 Review Practice Test. 
 
 
d rwx rwx rwx (file type, user, group, other) - CORRECT ANSWER Permission classes 
 
mv - CORRECT ANSWER Rename file in bash 
 
mv ~/projects/ - CORRECT ANSWER Move a file into projects folder in bash 
 
cp - CORRECT ANSWER copies the file to a new name, leaving the old one. 
 
cp -v - CORRECT ANSWER copy verbose 
 
rm - CORRECT ANSWER Removes the file 
 
Insert, vi, command (i, esc, :) - CORRECT ANSWER Vim modes 
 
import pdb; _trace() - CO...
Exam (elaborations)
Python Exam 3 Questions and Answers.
Python Exam 3 Questions and Answers. 
 
 
This term refers to an individual item in a list - CORRECT ANSWER Element 
 
This is a number that identifies an item in a list - CORRECT ANSWER index 
 
This is the first index in a list - CORRECT ANSWER 0 
 
This is the last index in a list - CORRECT ANSWER The size of the list minus one 
 
This will happen if you try to use an index that is out of range for a list - CORRECT ANSWER an IndexError will occur 
 
This function returns the length of a ...
Exam (elaborations)
Python Exam 1 Written Questions & Answers.
Python Exam 1 Written Questions & Answers. 
 
 
Python is an ____ language. - CORRECT ANSWER Interpreted 
 
In python, you can write a print statement that includes two or more expressions, separated by - CORRECT ANSWER Commas 
 
In python, a string literal is a sequence of characters enclosed in - CORRECT ANSWER Single or double quotation marks 
 
The escape sequence ____ is the new like character. - CORRECT ANSWER n 
 
End of line comments begins with the ____ symbol. - CORRECT ANSWER ...
Exam (elaborations)
Python Review Practice Study Test.
PYTHON REVIEW PRACTICE STUDY TEST. 
 
 
Python is named after - CORRECT ANSWER a British comedy group 
 
Python can be used as - CORRECT ANSWER both a scripting and programming language 
 
Python 3 is intentionally incompatible with Python 2. (T or F) - CORRECT ANSWER True 
 
To install Python on Windows - CORRECT ANSWER a) download and run an installer from 
b) download the Python source code from , then download and install a compiler, then build and install Python 
Answer) either a or b ...
Exam (elaborations)
PCEP | Certified Entry-Level Python Programmer Certification Study Guide Exam.
PCEP | Certified Entry-Level Python Programmer Certification Study Guide Exam. 
 
 
Syntax - CORRECT ANSWER A set of rules used to determine if a certain string of words form a valid sentence. 
 
*Syntactically-each language has its rules and they must be obeyed. 
 
Semantics - CORRECT ANSWER A set of rules determining if a certain phrase makes sense. 
 
*Semantically-the program has to make sense. 
 
Lexis - CORRECT ANSWER (Aka Dictionary) as set of words the language offers its users. 
 ...
Exam (elaborations)
Intro to Python Exam 2 Questions & Answers.
Intro to Python Exam 2 Questions & Answers. 
 
 
Sequences - CORRECT ANSWER objects that can hold multiple items of data in order. You can then perform operations on sequences to examine and manipulate the items stored in them. 
 
What sequence types does Python use? - CORRECT ANSWER Lists, tuples 
 
Lists are mutable. What does this mean? - CORRECT ANSWER Their contents can be changed during program execution 
 
What are the different ways lists can be created? - CORRECT ANSWER [ ] with num...
Exam (elaborations)
Python Exam 1 Questions Correctly Answered.
Python Exam 1 Questions Correctly Answered. 
 
 
What is the output of: 11.0//2 - CORRECT ANSWER 5.0 
Floor division to the nearest whole number 
Returns a float 
 
What is the output of: 11//2 - CORRECT ANSWER 5 
Return an int 
 
What is the output of: 11/2 - CORRECT ANSWER 5.5 
Returns a float 
 
What is the output of: 11/2.0 - CORRECT ANSWER 5.0 
 
What is the output of: 20%2 - CORRECT ANSWER 0 
 
What is the output of: 21%2 - CORRECT ANSWER 1 
 
What is the output of: 11%3 - CORRECT ...
Exam (elaborations)
Python Exam 1 - Spring 2025 Correctly Answered.
Python Exam 1 - Spring 2025 Correctly Answered. 
 
 
T/F: Python was created by Guido van Rossum in the late 1980s - CORRECT ANSWER True 
 
T/F: Python is a low-level programming language focusing primarily on system operations and memory management. - CORRECT ANSWER False. Python is a high-level programming language 
 
T/F: Pythons syntax allows programmers to write programs with fewer lines than some other programming languages - CORRECT ANSWER True 
 
T/F: Python is only suitable for web d...
Exam (elaborations)
ITS Python Practice Exam 2 - Python Programming Correctly Answered.
ITS Python Practice Exam 2 - Python Programming Correctly Answered. 
 
 
Using the dropdown arrows for the missing code pieces, complete the following code example so that it accomplishes the functionality of this game: 
 
A user gets five chances to correctly guess a whole number from 1 to 10. If the user guesses correctly, they get a congratulatory message and the game ends. If not, they get a message thanking them for playing. - CORRECT ANSWER from random import randint 
randint(1,10) 
 
A de...
Exam (elaborations)
Python Final Exam Study GUIDE Test.
Python Final Exam Study GUIDE Test. 
 
 
A(n) __________ program translates a high-level language program into a separate machine language program. 
 
 translator 
 assembler 
 compiler 
 utility - CORRECT ANSWER compiler 
 
The rules that must be followed when writing a program are called __________. 
 
 operators 
 punctuation 
 syntax 
 key words - CORRECT ANSWER syntax 
 
The __________ translates an assembly language program to a machine language program. 
 
 assembler 
 translator...
Exam (elaborations)
Introduction to Programming Final Exam Review (PYTHON)Study Test.
Introduction to Programming Final Exam Review (PYTHON)Study Test. 
 
 
A ________ does not prevent the program from running, but causes it to produce incorrect result - CORRECT ANSWER Syntax Error 
 
A ______ is sequence of characters - CORRECT ANSWER String 
 
A ____ is a name that references a value in the computer's memory - CORRECT ANSWER Variable 
 
A _____ in python must be enclosed in either single or double-quotes - CORRECT ANSWER String Literal 
 
Short notes placed in different ...
Exam (elaborations)
PYTHON Exam 1 Questions Correctly Answered.
PYTHON Exam 1 Questions Correctly Answered. 
 
 
algorithm - CORRECT ANSWER A set of specific steps for solving a category of problems 
 
comment - CORRECT ANSWER Text in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program 
 
high-level language - CORRECT ANSWER A programming language like Python that is designed to be easy for humans to read and write. 
 
print - CORRECT ANSWER A function used in a program or sc...
Exam (elaborations)
Final Exam - Python Coding Study Guide Test.
Final Exam - Python Coding Study Guide Test. 
 
 
What will be the result of the following Python 3 statement? temperature = "3" + "5" - CORRECT ANSWER ' 35 ' 
 
What will be the output of the following code in Python 3? 
 
number = 6 
number = number + 4 
lucky_number = 10 * number 
print(lucky_number/number) - CORRECT ANSWER 10 
 
What is the output of the following code in Python 3? 
 
print("Ozymandius"[2:4]) - CORRECT ANSWER ym 
 
What is the output of the follo...
Exam (elaborations)
Mid-Term Python Exam Questions Correctly Answered.
Mid-Term Python Exam Questions Correctly Answered. 
 
 
False - CORRECT ANSWER True or False: Computer science is the study of computers 
 
CPU - CORRECT ANSWER The "brain" of the computer is the 
 
RAM (Random Access Memory) - CORRECT ANSWER Main memory is also called 
 
main memory - CORRECT ANSWER All information that a computer is currently working on is stored in 
 
Syntax - CORRECT ANSWER _______ of a language is its form 
 
Semantics - CORRECT ANSWER _______ of a language is i...
Exam (elaborations)
ITS Python Practice Exam 1 - Python Programming Study Guide Test.
ITS Python Practice Exam 1 - Python Programming Study Guide Test. 
 
 
Python makes the distinction between integers and floating variables. - CORRECT ANSWER Yes 
 
When declaring variables in Python, a data type must be specified. - CORRECT ANSWER No 
 
When setting a boolean variable, the value must start with a capital letter. - CORRECT ANSWER Yes 
 
A developer wants to make sure a serial number cannot be used in a calculation and that a dollar amount entered as a whole number can have de...
Exam (elaborations)
Python Exam Chapters 1-5 Exam Questions Correctly Answered.
Python Exam Chapters 1-5 Exam Questions Correctly Answered. 
 
 
Which of the following are operators, and which are values? 
* 
'hello' 
-88.8 
- 
/ 
+ 
5 - CORRECT ANSWER 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' - CORRECT ANSWER The variable is spam; the string is 'spam'. Strings always start and end with quotes. 
 
Name three data types. - CORRECT ANSWER The t...
Exam (elaborations)
Python Exam 1: Multiple Choice Questions & Answers.
Python Exam 1: Multiple Choice Questions & Answers. 
 
 
What is the informal language, used by programmers use to create models of programs, that has no syntax rules and is not meant to be compiled or executed? 
 
a. flowchart 
b. algorithm 
c. source code 
d. pseudocode - CORRECT ANSWER d. pseudocode 
 
A(n) ________ is a diagram that graphically depicts the steps that take place in a program. 
 
a. flowchart 
b. algorithm 
c. source code 
d. pseudocode - CORRECT ANSWER a. flowchart 
 
The _...
Exam (elaborations)
Intro to Python Exam Questions With 100% Correct Answers.
Intro to Python Exam Questions With 100% Correct Answers. 
 
 
Why are functions helpful? - CORRECT ANSWER Functions facilitate code reusability, readability, and maintenance 
 
What is "scope" in terms of programming language python? - CORRECT ANSWER Scope is the term used to describe the points at which in code variables and functions are defined. 
 
Why is there an error when trying to run this code? 
 
a=int(input()) 
b=int(input()) 
 
if c<a+b: 
print("Less than a +b:) 
 
a = ...