What is the output of the following code?
y = 2 + 3 * 5.
print(Y)
Mod 2 Test
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Scott Freeman
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
y = 2 + 3 * 5.
print(Y)
error
25.
17
17.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code if the user enters two lines containing 2 and 4 respectively?
x = input()
y= input()
print (x +y)
2
24
4
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The 0o prefix means that the numbers after it is denoted as:
binary
decimal
hexadecimal
octal
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The print() function can outpur values of:
just one argument
not more than five arguments
any number of arguments (excluding zero)
any number of arguments (including zero)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The meaning of the keyword parameter is determined by:
Its positions within the argument list
its value
the argument's name specified along with its value
its connection with existing variables
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following variable names are illegal?
select two
True
true
TRUE
and
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following snippet (code) if the user enters two lines containing 2 and 4 respectively?
x = int(input())
y = int(input())
x = x//y
y= y//x
print(y)
4.0
error
2.0
8.0
20 questions
AQA GCSE Computer Science - 3.4.2 Boolean Logic
Quiz
•
8th - 10th Grade
17 questions
Sorting Simple List and List processing in Python
Quiz
•
9th Grade
18 questions
Computer Parts Quiz
Quiz
•
9th - 12th Grade
15 questions
Input Devices and its uses
Quiz
•
9th Grade
15 questions
Gateway Level 3 Python Quiz 3
Quiz
•
9th - 12th Grade
15 questions
ONE 6th FORM Introduction to Python Basics
Quiz
•
11th Grade
20 questions
ASK T2 - Kod Arahan (Python)
Quiz
•
7th Grade - University
17 questions
Input and Output devices
Quiz
•
7th - 11th Grade
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