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
22 questions
Java Code Snippets Quiz 1
Quiz
•
10th Grade
15 questions
Python Basics
Quiz
•
KG - University
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
22 questions
mod 4 test
Quiz
•
9th - 12th Grade
20 questions
ASK T2 - Kod Arahan (Python)
Quiz
•
7th Grade - University
20 questions
Python Basics ;)
Quiz
•
11th Grade
20 questions
quiz dasar python
Quiz
•
1st Grade - University
20 questions
Python variables and operators quiz
Quiz
•
9th - 12th 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