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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
C-Programming Basics

Quiz
•
12th Grade
20 questions
BOOLEAN ALGEBRA

Quiz
•
11th Grade
15 questions
python basics

Quiz
•
11th Grade - University
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
22 questions
mod 4 test

Quiz
•
9th - 12th Grade
22 questions
Java Code Snippets Quiz 1

Quiz
•
10th Grade
15 questions
Java Increment Quiz

Quiz
•
11th Grade
20 questions
Python Basics ;)

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade