- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 122 study documents about .
122 results
Exam (elaborations)
Python 1 Final Exam Questions and Answers
Python 1 Final Exam Questions and Answers 
The definition of a variable is ____. - Correct Answer️️ -a storage location in a 
computer program 
What is the value of the variable named num after the following code snippet? 
num = 5 
num2 = 6 
num = num2 + 3 - Correct Answer️️ -9 
What is the right way to assign the value of num + 10 to the variable num2? - Correct 
Answer️️ -num2 = num + 10 
What is wrong here? 
2ndNum = 78 - Correct Answer️️ -The 2ndNum variable is not a valid va...
Exam (elaborations)
BUS 104 PYTHON EXAM REVIEW: Multiple Choice Questions and Answers
BUS 104 PYTHON EXAM REVIEW: Multiple Choice 
Questions and Answers 
If variable x has the value 3.99, which of the following will set variable y equal to 3? 
(Assume the math library has been imported.) - Correct Answer️️ -1) y = trunc(x) 
2) y = round(x - 1) 
3) y = floor(x) 
Which of the following can be used to assign 2 percent to variable discount? - Correct 
Answer️️ -None of these answers 
A computer program is always made up of: - Correct Answer️️ -code 
The following code rep...
Exam (elaborations)
Intro to Python Exam 2 Questions and Answers
Exam (elaborations)
Python Exam Questions and Answers
Python Exam Questions and Answers 
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. 
Whic...
Exam (elaborations)
Python Programming Final Exam Questions and Answers
Python Programming Final Exam 
Questions and Answers 
The primary difference between a tuple and a list is that - Correct Answer️️ -once a 
tuple is created, it cannot be changed 
What will be the value of the variable list2 after the following code executes? 
list1 = [1, 2, 3] 
list2 = [] 
for element in list1: 
d(element) 
list1 = [4, 5, 6] - Correct Answer️️ -[1, 2, 3] 
What will be the value of the variable list after the following code executes? 
list = [1, 2, 3, 4] 
list[3] = 10 - ...
Exam (elaborations)
Python Exam 1 Questions and Answers
Python Exam 1 Questions and Answers 
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 ...
Exam (elaborations)
Python Examination Questions and Answers
Python Examination Questions and Answers 
The sys module is used to perform which function? - Correct Answer️️ -Gives the user 
access to display and process system information 
Which argument is used in an open command when one wants to open a file but not 
make changes to the file? - Correct Answer️️ -r (read) 
Select the correct code entry from the drop-down in the code sample that will complete 
the datetime function. - Correct Answer️️ -import datetime 
Which code entry, when us...
Exam (elaborations)
Python Exam Questions and Answers
Python Exam Questions and Answers 
What is computational thinking? - Correct Answer️️ -1. Understand the problem 
2. Create a strategy for solving the problem 
3. Express the solution using code 
Algorithm - Correct Answer️️ -A sequence of well-defined instructions a computer can 
execute to perform calculations or solve problems. 
Code - Correct Answer️️ -A set of instruction to a computer to carry out a specific task 
Program - Correct Answer️️ -A complete piece of code that th...
Exam (elaborations)
Python - Test 1 100% Correct Solved
Python - Test 1 100% Correct Solved 
What is a program? - Correct Answer️️ -A program is a set of instructions that a 
computer follows to perform a task. 
What is hardware? - Correct Answer️️ -Hardware is all the physical devices, or 
components, of which a computer is made. 
List the five major components of a computer system. - Correct Answer️️ -The CPU, 
main memory, secondary storage devices, input devices and output devices. 
What part of the computer actually runs programs? - ...
Exam (elaborations)
Python Exam UAH Questions and Answers 100% Pass
Python Exam UAH Questions and 
Answers 100% Pass 
Which of the following data types are not supported in Python? - Correct Answer️️ - 
List, Set, Dict, Tuple 
Which of the following data types are not supported in Python? - Correct Answer️️ -int, 
string 
What is the output of print(str) if str = 'Hello World!'? - Correct Answer️️ -Hello World! 
What is the output of print(str[0]) if str = 'Hello World!'? - Correct Answer️️ -H 
What is the output of print(str[2:5]) if str = ...
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 ...
Exam (elaborations)
ITS Python Practice Exam 1 - Python Programming Questions and Answers
ITS Python Practice Exam 1 - Python 
Programming Questions and Answers 
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 n...
Exam (elaborations)
Python Coding Exam Questions and Answers 100% Pass
Python Coding Exam Questions and 
Answers 100% Pass 
In the following line of Python code, what is the argument to the input function? 
user_status = input("How are you today?") - Correct Answer️️ -"How are you today?" 
Which of the following does not describe a part of computational thinking in business? 
A: developing a strategy to solve the problem 
B: expressing the solution to a problem with code 
C: understanding the problem 
D: a fancy way of saying coding - Correct Answer️️ -...
Exam (elaborations)
Python Certification Questions and Answers 100% Pass
Python Certification Questions and 
Answers 100% Pass 
Boolean - Correct Answer️️ -A single value of either TRUE or FALSE 
** - Correct Answer️️ -Exponent 
* - Correct Answer️️ -Multiplication 
/ - Correct Answer️️ -Division to integer 
// - Correct Answer️️ -Division to float 
+ - Correct Answer️️ -addition 
- - Correct Answer️️ -Subtraction 
% - Correct Answer️️ -modulus (remainder) 
Unary - Correct Answer️️ -one operand 
Binary - Correct Answer️️ -The b...
Exam (elaborations)
First Python Test 100% Correct Solved
First Python Test 100% Correct Solved 
what is the error 
print( "%s lives on %s" % (street)) - Correct Answer️️ -only one string is defined 
type (1.3) ? - Correct Answer️️ -<class 'float'> 
hiding details about something - Correct Answer️️ -abstraction 
the type of errors - Correct Answer️️ -runtime, syntax, semantic 
what is redundancy - Correct Answer️️ -duplication 
Redundancy in languages allows - Correct Answer️️ -every detail not to be crucial 
a sequenc...
Exam (elaborations)
Python Entry Level Exam Questions and Answers 100% Pass
Python Entry Level Exam Questions and 
Answers 100% Pass 
Chapter 0 : Introduction - Correct Answer️️ - 
Introduction: Section 1 - Correct Answer️️ -Absolute Basics 
Why are programs important? - Correct Answer️️ -1) A program makes a computer 
usable. 
2) Programs enable computers to run complex instructions. 
3) Computers can only execute extremely simple operations. 
What do contemporary computers do well? - Correct Answer️️ -Contemporary 
computers evaluate the results of fun...
Exam (elaborations)
Python Coding Specialist EXAM Study Set Questions and Answers
Python Coding Specialist EXAM Study 
Set Questions and Answers 
What is used to define a block of code in Python? - Correct Answer️️ -Indentation 
Identify the Python comment. - Correct Answer️️ -3. # Some comment. 
Which one of the following is the correct extension of the Python file? - Correct 
Answer️️ -.py 
What is the special symbol used in python to add comments? - Correct Answer️️ -# 
How to output the string 'Hello' in Python? - Correct Answer️️ -print('Hello') 
...
Exam (elaborations)
Python Programming Final Exam Questions and Answers
Python Programming Final Exam 
Questions and Answers 
Name the three kinds of data sequences - Correct Answer️️ -tuples, strings, lists 
A ___ loop is used to iterate through a sequence - Correct Answer️️ -for 
the ___ function is used to determine how many pairs in a dictionary or how many 
elements in a sequence - Correct Answer️️ -length (len) 
An if statment is built by using an if followed by a ___, a ____, and a ____ of one or 
more statements - Correct Answer️️ -condition,...
Exam (elaborations)
Mid-Term Python Exam Questions and Answers
Mid-Term Python Exam Questions and Answers 
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 la...
Exam (elaborations)
Introduction to Programming Final Exam Review (Python) Questions and Answers
Introduction to Programming Final Exam 
Review (Python) Questions and Answers 
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 n...