How many variables in the codes below?
score=int(input("Enter the score? "))
a=200
total=a+100
PC1.8 Evaluate computer program
Quiz
•
Computers
•
9th Grade
•
Hard
Anas Ramadan
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many variables in the codes below?
score=int(input("Enter the score? "))
a=200
total=a+100
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the data type in the score's variable?
score=int(input("Enter the score? "))
Integer
Float
Character
String
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the data type in the score's variable?
score=input("Enter the score? ")
Integer
Float
Character
String
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output in the codes below?
a=10
b=20
print(a!=b)
10
False
True
20
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
if total>=50 :
print("A")
else :
print("B")
Will the code inside the if block is executed or skipped when total = 50?
(if block) will not be executed, then print "B"
(if block) will be executed, then print "A"
(if block) will be executed, then print "B"
(if block) will not be executed, then print "A"
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The codes below have an error because of :
score=90
if score>100 :
else :
print("B")
No parentheses after if statement
No print function after if statement
No columns
No semicolons
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The codes below have an error because of :
if score>100 :
print("A")
else :
print("B")
No indent
No print function
No columns
No variables
12 questions
N5 SDD - Python input and output
Quiz
•
7th - 11th Grade
10 questions
Pseudocode - OCR ERL
Quiz
•
9th - 12th Grade
15 questions
Java Math
Quiz
•
9th - 12th Grade
10 questions
Python Basics
Quiz
•
8th - 10th Grade
15 questions
Program Development - Python: Conditionals
Quiz
•
9th - 10th Grade
10 questions
Quiz - print() function
Quiz
•
9th Grade
12 questions
Intro to python
Quiz
•
9th Grade
11 questions
Control Structures - Selection in Python
Quiz
•
8th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University