Font size
WorksheetsAP CSP 300PT Quizizz 12-6 - FRI SUB
Total questions: 86
Worksheet time: 59mins
name = 'Dave'
print (name)
Which is the Python logo?
What is an input?
A command that allows us to ask the user to enter some data.
To plug in something.
Data displayed on a screen.
A function
What is an output?
A piece of data that is shown on the screen.
Data that the user enters
An output
A orange
To display the following on screen
Hello World!
the following command should be used:
print(Hello World!)
print("Hello World!")
print("Hello World" + !)
print"(Hello World!)"
x = 5
y = 6
print("x*y")
The code above displays the following:
11
x*y
Syntax Error
30
Choose the correct operators used in python:
divide, multiply, add, subtract
/, *, +, -
div, mul, +, -
\, x, +, -
~, *, +, -
Which operator checks if a value is equal to another value?
+
=
==
!=
Which operator checks if a value is not equal to another value?
==
+=
!=
=
A data type that can have one of two values: True or False
boolean
variable
modulo
interpreter
name = "Bob"
if name == "Bob":
print ("Hello " + name)
else:
print ("I dont know you")
Integers are ____________ and floats are _____________
whole numbers and exponents
powers and fractions
fractions and whole numbers
whole numbers and decimal numbers
What is the answer to this expression, 22%3 is
7
1
0
5
Which is the correct operator for power xy
x^y
x**y
x^^y
None of these
Which one of theses is floor division
/
//
%
None of theses
What is the order of precedence in Python?
i. Parenthesis
ii. Exponential
iii. Multiplication
iv. Division
v. Addition
vi. Subtraction
i, ii, iii, iv, v, vi
ii, i, iii, iv, v, vi
ii, i, iv, iii, v, vi
i, ii, iii, vi, v, iv
Mathematical operations can be performed on a string
True
False
Operators with same precedence are evaluated in which manner?
Left to Right
Right to Left
Can't Say
None of the mentioned
What is the output of this expression, 3*1**3
27
9
3
1
Which of the following is true for variable names in python?
Unlimited Length
all private members must have leading and trailing underscores
underscores and ampersand are only two special characters allowed
None of these
Which of the following is an invalid variable?
my_string_1
1st_string
foo
-
is Python case sensitive when dealing with identifiers?
yes
no
machine dependent
none of these
Which is an example of Hardware?
the CPU
the internet
a video game
a hammer
What is an example of Software
a sock
a video game
the power cord
the mousepad
Give me an example of Input you can give a computer...
Give me an example of Output you can have a computer give you...
One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?
Selection
Iteration
Sequencing
Phishing
What is the technical term for one of the three building blocks of programming which is another way of saying loops, or while/repeat until/for loops? For example:
For each x in item:
print(x)
Incremental
Alternative
Iteration
Algorithm
How would you name any attempt (usually through email) to get your personal information, which can be used to gain unauthorized access to important accounts?
Snooping
Spamming
Malware
Phishing
Anything that has 2 choices is known as?
Examples:
Binary number system (0 & 1)
Booleans (True, False)
Base
Boolean
Hexadecimal
Binary
This type of compression allows one to uncompress and get the original item back.
Examples: ZIP/RAR/tarballs, PNG, OGG
Lossy
Lossless
CODEC
Advanced
This type of compression where data is lost in order to compress the item is known as? Uncompression to the original item is impossible.
Examples: JPG, MP3
Lossy
Lossless
CODEC
Uncompression
Google Drive, Dropbox, Amazon Web Services, Microsoft Office Online/Google Docs are referred to services that normally would be confined to a computer that are now served through the Internet. The technical term for these services is:
Computing innovation
Could computing
Server
Creative commons
What is the name of a numerical address to identify users & devices on the Internet? Example: 216.3. 128.12
Uniform Resource Locator
Web address
IP Address
Internet Transmission Protocol
Files that are used to keep track of a user’s interaction with a web page are known as? This is how sites know that you are logged in after you’ve closed a tab/window.
Spam
Tracker
Malware
Cookies
Encryption that relies on a public key that is given out to everybody. A key is kept only by the receiver of the message. This is a:
Public Key Encryption
Private Key Encryption
Intrusion Detection Key
Intrusion Prevention Key
Generally speaking, every 2.5 years the processing speed of a computer doubles & the processor size is cut in half. This theory is known as?
Gordon's Law
Gates's Law
Moore’s Law
Murphy's Law
This system translates IP addresses of servers to names.
Domain name system (DNS)
Public domain system (PDS)
HyperText Markup Language
WWW
Computer Science is much more than just learning a programming language
True
False
A software application, especially one that a user downloads to a mobile device.
program
block
app
...................... is a step by step set of instructions to solve a problem or complete an action.
Abstraction
Algorithm
Input
Output
............................is user interaction with the program
input
output
storage
program
..................................... is a description of what the program is doing or the values of any variables at any moment given
output
program
storage
state
........................is an observable behavior.
abstraction
input
output
process
The grammar and spelling of text-based programming languages.
storage
algorithm
abstraction
syntax
Eliminating unnecessary details when programming is called
abstraction
attributes
syntax
addition
Which one is not a building block of an algorithm?
abstraction
sequencing
iteration
selection
................. is an abstraction in the program that can hold a value.
Placeholder
Storage
Process
Variable
What type of variable is "name"?
float
int
string
boolean
What type of variable would you use to show the number of students?
int
float
string
boolean
........................is a simple diagram with symbols that shows the flow of a process
sequencing
flowchart
flowline
condition
........................is an informal way of writing algorithmic instructions.
Low Level language
Machine language
Pseudocode
Binary
A logic structure where the instructions executed one at a time in order
Selection
Sequencing
Iteration
Abstraction
A named collection of steps in an algorithm that can be used again and again as needed without restating the detailed procedure.
Procedure
Sequence
abstraction
parameter
..........................is a structure that uses if-then/if-else to help the computer how to select a step
Sequencing
Iteration
Selection
operator
....................................a symbol that we use to show a comparison in a conditional statement
parameter
operator
pseudocode
program
One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?
Selection
Iteration
Sequencing
Phishing
What is the technical term for one of the three building blocks of programming which is another way of saying loops, or while/repeat until/for loops? For example:
For each x in item:
print(x)
Incremental
Alternative
Iteration
Algorithm
How would you name any attempt (usually through email) to get your personal information, which can be used to gain unauthorized access to important accounts?
Snooping
Spamming
Malware
Phishing
Anything that has 2 choices is known as?
Examples:
Binary number system (0 & 1)
Booleans (True, False)
Base
Boolean
Hexadecimal
Binary
This type of compression allows one to uncompress and get the original item back.
Examples: ZIP/RAR/tarballs, PNG, OGG
Lossy
Lossless
CODEC
Advanced
This type of compression where data is lost in order to compress the item is known as? Uncompression to the original item is impossible.
Examples: JPG, MP3
Lossy
Lossless
CODEC
Uncompression
Google Drive, Dropbox, Amazon Web Services, Microsoft Office Online/Google Docs are referred to services that normally would be confined to a computer that are now served through the Internet. The technical term for these services is:
Computing innovation
Could computing
Server
Creative commons
What is the name of a numerical address to identify users & devices on the Internet? Example: 216.3. 128.12
Uniform Resource Locator
Web address
IP Address
Internet Transmission Protocol
Files that are used to keep track of a user’s interaction with a web page are known as? This is how sites know that you are logged in after you’ve closed a tab/window.
Spam
Tracker
Malware
Cookies
Encryption that relies on a public key that is given out to everybody. A key is kept only by the receiver of the message. This is a:
Public Key Encryption
Private Key Encryption
Intrusion Detection Key
Intrusion Prevention Key
Generally speaking, every 2.5 years the processing speed of a computer doubles & the processor size is cut in half. This theory is known as?
Gordon's Law
Gates's Law
Moore’s Law
Murphy's Law
This system translates IP addresses of servers to names.
Domain name system (DNS)
Public domain system (PDS)
HyperText Markup Language
WWW
What is a Boolean?
A data type that can have one of two possible values: true or false.
A data type that can have multiple values.
A data type that can have one of three possible values: true, false, or maybe.
A data type that can only have the value true.
What is a conditional statement?
A statement that is executed before the condition is checked
A programming construct that allows the execution of different code blocks based on a specified condition.
A statement that is executed only once
A statement that is always executed regardless of the condition
What is abstraction?
A term used in philosophy to describe the process of generalization
A type of dance move popular in the 1980s
A technique used in painting to create a blurry effect
A concept in computer science where complex systems are simplified by focusing on the essential details and hiding unnecessary complexities.
What is a variable?
A mathematical equation
A programming language
A named storage location in a computer's memory that can hold a value.
A type of computer virus
What is a loop?
A loop is a programming construct that allows a set of instructions to be repeated multiple times until a certain condition is met.
A loop is a type of musical composition.
A loop is a circular shape or path.
A loop is a type of knot used in sailing.
What is an algorithm?
A musical instrument
A set of instructions designed to perform a specific task.
A type of food seasoning
A type of computer virus
What is a function?
A comment in the code
A block of code that performs a specific task
A loop that repeats a set of instructions
A variable that stores a value
What is a parameter?
A loop in a program
A variable in a function definition
A constant value in a program
A data type in programming
What is an array?
A data structure that stores a single element.
A data structure that stores a collection of elements of the same type.
A data structure that stores a collection of elements of different types.
A data structure that stores elements in a random order.
What is a string?
A type of musical instrument.
A type of food made from dough.
A sequence of characters used to represent text.
A piece of thread used for sewing.
