wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP 300PT Quizizz 12-6 - FRI SUB

Total questions: 86

Worksheet time: 59mins

Name
Class
Date
1.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
2.
The number or word we give to a variable
a)
Value
b)
Bug
c)
Information
d)
Text
3.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
4.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
5.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
6.
What would print (10 + 16) produce?
a)
20
b)
22
c)
24
d)
26
7.

Which is the Python logo?

a)
b)
c)
d)
8.

What is an input?

a)

A command that allows us to ask the user to enter some data.

b)

To plug in something.

c)

Data displayed on a screen.

d)

A function

9.

What is an output?

a)

A piece of data that is shown on the screen.

b)

Data that the user enters

c)

An output

d)

A orange

10.

To display the following on screen

Hello World!

the following command should be used:

a)

print(Hello World!)

b)

print("Hello World!")

c)

print("Hello World" + !)

d)

print"(Hello World!)"

11.

x = 5

y = 6

print("x*y")


The code above displays the following:

a)

11

b)

x*y

c)

Syntax Error

d)

30

12.

Choose the correct operators used in python:


divide, multiply, add, subtract

a)

/, *, +, -

b)

div, mul, +, -

c)

\, x, +, -

d)

~, *, +, -

13.
Which symbol do we use if we want to add a comment to our code?
a)
@
b)
#
c)
*
d)
&
14.

Which operator checks if a value is equal to another value?

a)

+

b)

=

c)

==

d)

!=

15.

Which operator checks if a value is not equal to another value?

a)

==

b)

+=

c)

!=

d)

=

16.

A data type that can have one of two values: True or False

a)

boolean

b)

variable

c)

modulo

d)

interpreter

17.
Which of the following is a float?
a)
new_var = 1234
b)
new_var = True
c)
new_var = 1.234
d)
new_var = "True"
18.
Which of the following is not a string?
a)
new_var = "True"
b)
new_var = "3123"
c)
new_var = "3.123"
d)
new_var = False
19.
What will the following code do? 
name = "Bob"
if name == "Bob": 
     print ("Hello " + name) 
else:  
     print ("I dont know you")
a)
prints bob
b)
prints Hello Bob
c)
nothing syntax error
d)
prints I don't know you
20.

Integers are ____________ and floats are _____________

a)

whole numbers and exponents

b)

powers and fractions

c)

fractions and whole numbers

d)

whole numbers and decimal numbers

21.

What is the answer to this expression, 22%3 is

a)

7

b)

1

c)

0

d)

5

22.

Which is the correct operator for power  xyx^y  

a)

x^y

b)

x**y

c)

x^^y

d)

None of these

23.

Which one of theses is floor division

a)

/

b)

//

c)

%

d)

None of theses

24.

What is the order of precedence in Python?

i. Parenthesis

ii. Exponential

iii. Multiplication

iv. Division

v. Addition

vi. Subtraction

a)

i, ii, iii, iv, v, vi

b)

ii, i, iii, iv, v, vi

c)

ii, i, iv, iii, v, vi

d)

i, ii, iii, vi, v, iv

25.

Mathematical operations can be performed on a string

a)

True

b)

False

26.

Operators with same precedence are evaluated in which manner?

a)

Left to Right

b)

Right to Left

c)

Can't Say

d)

None of the mentioned

27.

What is the output of this expression, 3*1**3

a)

27

b)

9

c)

3

d)

1

28.

Which of the following is true for variable names in python?

a)

Unlimited Length

b)

all private members must have leading and trailing underscores

c)

underscores and ampersand are only two special characters allowed

d)

None of these

29.

Which of the following is an invalid variable?

a)

my_string_1

b)

1st_string

c)

foo

d)

-

30.

is Python case sensitive when dealing with identifiers?

a)

yes

b)

no

c)

machine dependent

d)

none of these

31.

Which is an example of Hardware?

a)

the CPU

b)

the internet

c)

a video game

d)

a hammer

32.

What is an example of Software

a)

a sock

b)

a video game

c)

the power cord

d)

the mousepad

33.

Give me an example of Input you can give a computer...

4 lines
34.

Give me an example of Output you can have a computer give you...

4 lines
35.

One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?

a)

Selection

b)

Iteration

c)

Sequencing

d)

Phishing

36.

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)

a)

Incremental

b)

Alternative

c)

Iteration

d)

Algorithm

37.

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?

a)

Snooping

b)

Spamming

c)

Malware

d)

Phishing

38.

Anything that has 2 choices is known as?

Examples:

Binary number system (0 & 1)

Booleans (True, False)

a)

Base

b)

Boolean

c)

Hexadecimal

d)

Binary

39.

This type of compression allows one to uncompress and get the original item back.

Examples: ZIP/RAR/tarballs, PNG, OGG

a)

Lossy

b)

Lossless

c)

CODEC

d)

Advanced

40.

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

a)

Lossy

b)

Lossless

c)

CODEC

d)

Uncompression

41.

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:

a)

Computing innovation

b)

Could computing

c)

Server

d)

Creative commons

42.

What is the name of a numerical address to identify users & devices on the Internet? Example: 216.3. 128.12

a)

Uniform Resource Locator

b)

Web address

c)

IP Address

d)

Internet Transmission Protocol

43.

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.

a)

Spam

b)

Tracker

c)

Malware

d)

Cookies

44.

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:

a)

Public Key Encryption

b)

Private Key Encryption

c)

Intrusion Detection Key

d)

Intrusion Prevention Key

45.

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?

a)

Gordon's Law

b)

Gates's Law

c)

Moore’s Law

d)

Murphy's Law

46.

This system translates IP addresses of servers to names.

a)

Domain name system (DNS)

b)

Public domain system (PDS)

c)

HyperText Markup Language

d)

WWW

47.

Computer Science is much more than just learning a programming language

a)

True

b)

False

48.

A software application, especially one that a user downloads to a mobile device.

a)

program

b)

block

c)

app

49.

...................... is a step by step set of instructions to solve a problem or complete an action.

a)

Abstraction

b)

Algorithm

c)

Input

d)

Output

50.

............................is user interaction with the program

a)

input

b)

output

c)

storage

d)

program

51.

..................................... is a description of what the program is doing or the values of any variables at any moment given

a)

output

b)

program

c)

storage

d)

state

52.

........................is an observable behavior.

a)

abstraction

b)

input

c)

output

d)

process

53.

The grammar and spelling of text-based programming languages.

a)

storage

b)

algorithm

c)

abstraction

d)

syntax

54.

Eliminating unnecessary details when programming is called

a)

abstraction

b)

attributes

c)

syntax

d)

addition

55.

Which one is not a building block of an algorithm?

a)

abstraction

b)

sequencing

c)

iteration

d)

selection

56.

................. is an abstraction in the program that can hold a value.

a)

Placeholder

b)

Storage

c)

Process

d)

Variable

57.

What type of variable is "name"?

a)

float

b)

int

c)

string

d)

boolean

58.

What type of variable would you use to show the number of students?

a)

int

b)

float

c)

string

d)

boolean

59.

........................is a simple diagram with symbols that shows the flow of a process

a)

sequencing

b)

flowchart

c)

flowline

d)

condition

60.

........................is an informal way of writing algorithmic instructions.

a)

Low Level language

b)

Machine language

c)

Pseudocode

d)

Binary

61.

A logic structure where the instructions executed one at a time in order

a)

Selection

b)

Sequencing

c)

Iteration

d)

Abstraction

62.

A named collection of steps in an algorithm that can be used again and again as needed without restating the detailed procedure.

a)

Procedure

b)

Sequence

c)

abstraction

d)

parameter

63.

..........................is a structure that uses if-then/if-else to help the computer how to select a step

a)

Sequencing

b)

Iteration

c)

Selection

d)

operator

64.

....................................a symbol that we use to show a comparison in a conditional statement

a)

parameter

b)

operator

c)

pseudocode

d)

program

65.

One of the three building blocks of programming. Sequencing refers to just sequential steps in a program is known as?

a)

Selection

b)

Iteration

c)

Sequencing

d)

Phishing

66.

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)

a)

Incremental

b)

Alternative

c)

Iteration

d)

Algorithm

67.

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?

a)

Snooping

b)

Spamming

c)

Malware

d)

Phishing

68.

Anything that has 2 choices is known as?

Examples:

Binary number system (0 & 1)

Booleans (True, False)

a)

Base

b)

Boolean

c)

Hexadecimal

d)

Binary

69.

This type of compression allows one to uncompress and get the original item back.

Examples: ZIP/RAR/tarballs, PNG, OGG

a)

Lossy

b)

Lossless

c)

CODEC

d)

Advanced

70.

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

a)

Lossy

b)

Lossless

c)

CODEC

d)

Uncompression

71.

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:

a)

Computing innovation

b)

Could computing

c)

Server

d)

Creative commons

72.

What is the name of a numerical address to identify users & devices on the Internet? Example: 216.3. 128.12

a)

Uniform Resource Locator

b)

Web address

c)

IP Address

d)

Internet Transmission Protocol

73.

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.

a)

Spam

b)

Tracker

c)

Malware

d)

Cookies

74.

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:

a)

Public Key Encryption

b)

Private Key Encryption

c)

Intrusion Detection Key

d)

Intrusion Prevention Key

75.

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?

a)

Gordon's Law

b)

Gates's Law

c)

Moore’s Law

d)

Murphy's Law

76.

This system translates IP addresses of servers to names.

a)

Domain name system (DNS)

b)

Public domain system (PDS)

c)

HyperText Markup Language

d)

WWW

77.

What is a Boolean?

a)

A data type that can have one of two possible values: true or false.

b)

A data type that can have multiple values.

c)

A data type that can have one of three possible values: true, false, or maybe.

d)

A data type that can only have the value true.

78.

What is a conditional statement?

a)

A statement that is executed before the condition is checked

b)

A programming construct that allows the execution of different code blocks based on a specified condition.

c)

A statement that is executed only once

d)

A statement that is always executed regardless of the condition

79.

What is abstraction?

a)

A term used in philosophy to describe the process of generalization

b)

A type of dance move popular in the 1980s

c)

A technique used in painting to create a blurry effect

d)

A concept in computer science where complex systems are simplified by focusing on the essential details and hiding unnecessary complexities.

80.

What is a variable?

a)

A mathematical equation

b)

A programming language

c)

A named storage location in a computer's memory that can hold a value.

d)

A type of computer virus

81.

What is a loop?

a)

A loop is a programming construct that allows a set of instructions to be repeated multiple times until a certain condition is met.

b)

A loop is a type of musical composition.

c)

A loop is a circular shape or path.

d)

A loop is a type of knot used in sailing.

82.

What is an algorithm?

a)

A musical instrument

b)

A set of instructions designed to perform a specific task.

c)

A type of food seasoning

d)

A type of computer virus

83.

What is a function?

a)

A comment in the code

b)

A block of code that performs a specific task

c)

A loop that repeats a set of instructions

d)

A variable that stores a value

84.

What is a parameter?

a)

A loop in a program

b)

A variable in a function definition

c)

A constant value in a program

d)

A data type in programming

85.

What is an array?

a)

A data structure that stores a single element.

b)

A data structure that stores a collection of elements of the same type.

c)

A data structure that stores a collection of elements of different types.

d)

A data structure that stores elements in a random order.

86.

What is a string?

a)

A type of musical instrument.

b)

A type of food made from dough.

c)

A sequence of characters used to represent text.

d)

A piece of thread used for sewing.