Font size
WorksheetsPLTW Computer Science
Total questions: 110
Worksheet time: 2hrs 50mins
The bash tab is located in the.....
Top left corner of the page
the bottom of the page
The bottom right of the page
the top right of the page
What is another name for bash?
Bash 2.0
The Command Line
Integral
Bam
What does Modulo do
Gives the difference of two numbers
Does simple arithmetic
Give the product when mutiplying
Returns the reminder when divding
What does the following code statement mean "from .models import Question"?
The code statement allows the views.py file to access to your Question data type defined in the models.py file.
The code statement allows the views.py file access to your Question data type defined in the urls.py file.
The code statement allows the views.py file access to your Question data type defined in the admin.py file.
The code statement allows the views.py file access to your Question data type defined in the views.py file.
print(Hello world!)
print("Hello world!")
Print("Hello world!")
print(3+4)
print("3+4")
print(3*4)
print(3*4+5)
print("3*4+5")
print(9/3)
print(9/3*2+4-5)
print("Hello" + "world!")
print("Hello" + "world" + "today")
print("Hello" + 2 + "world")
print("Hello world!" * 2 * "Hello world!")
print("Hello" + str(2) + "world!")
Which of these is spelled correctly...
Iteration
Iteraton
Iteretion
Iterasion
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[-1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
What is a returned value?
The value passed from a function back to the line of code calling the function
A place in memory to store a value
Rules about what words from a programming language are allowed to go together and how
A block of code given a name that is able to be called by referencing the function name
Local is the opposite of global. Properties of components are global variables. Any variable that you initialize at the start of a program in App Inventor is a global variable.
True
False
A variable and pattern designed to keep a running total through multiple iterations
Accumulator Pattern
Concatenation
While Loop
Counted Loop
A procedure to follow, especially using iteration and conditionals
For Loop
Algorithm
Return Value
Concatenation
A(n) arithmetic operator is:
Values that a program provides to a function or subroutine
Type of code to perform a math operation, such as + - * /
A set of steps to accomplish a task.
Way to manage complexity, hide details or remove duplication
A(n) relational operator is:
An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)
A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)
Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.
Control block that looks for events to then perform action
A(n) logical operator is:
An expression that can be evaluted as TRUE or FALSE. Often used in CONDITIONAL STATEMENTS, such as IF (condition) THEN (action1) ELSE (action2)
Control block that looks for events to then perform action
A symbol that represents a compare action for a computer to take. Examples are: ">" (greater than), "<" (less than) and "=" (equal)
Operators that are used to combine or change Boolean Expressions. The 3 standard operators are AND, OR, and NOT.
A(n) integer is:
A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)
A precise number by including values after the decimal place
A whole number, it does not have any digits after a decimal.
A data type that can have only 2 values - TRUE or FALSE
A(n) conditional statement is:
A precise number by including values after the decimal place
A data type that can have only 2 values - TRUE or FALSE
A whole number, it does not have any digits after a decimal.
A programming statement that directs control flow - it uses BOOLEAN expressions to make a choice between different paths (IF (condition) THEN (path1) ELSE (path2)
A(n) string is:
An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.
An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.
The smallest unit of data storage that a program can use.
A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.
A(n) value is:
A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.
An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.
An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.
The smallest unit of data storage that a program can use.
A(n) variable is:
An action (such as clicking a button) or occurrence (receiving a text message) that happens during runtime that will trigger a response or behavior by the software.
An object such as a number or word. A _____ is an expression that cannot be evaluated any further. Variables are evaluated to a final ____ before operators (arithmetic, relational, or logical) are then used on them.
A type of variable that holds text (characters, numbers, punctuation or math symbols). Uses quotes to tell the computer to not treat what is inside the string (inside the quotes) as code.
The smallest unit of data storage that a program can use.
What numbers are included in this range call: range(2, 10, 2)
2, 4, 6, 8, 10
2, 4, 6, 8
1, 2, 3, 4, 5, 6, 7, 8, 9
2, 3, 4, 5, 6, 7, 8, 9
A value that a function evaluates to.
Return Value
None
Parameter
Argument
A statement used in a function to exit the function.
return
break
exit
quit
print("Hello world!\nHello world!")
Hello world!
print("Hello world!" * 2)
name = 'Dave'
print (name)
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
Display: Welcome to the quiz!
if age is less than 20 and greater than equal or equal to 15 then
The modulo operation finds only the remainder when one number is divided by another. True or false?
True
False
5
6
21
36
C
C
Score = Score + 1
amount = 2 + 5 * 2
for number in range(6):
print(number)
word= "computer"
for num in range(1,6):
print(word)
for loopCounter in range(10,101,10):
print(loopCounter)
4
3
2
1
3
2
1
0
2
11
2
21
2
3
11
2
3
21
hello
bye
5
4
1
0
3
6
bird
fish
bird fish cat dog
cat
0
i
0 1 2
0 0 0 0 0 0 0 0 0 0 0 0 0 ...
1
i
3
6
