
PROG2013_Quiz_Unit1a

Quiz
•
Information Technology (IT)
•
University
•
Medium

Lisa W
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you print the value stored in the variable message?
echo(message)
echo(message)
print(message)
message.print()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
y = 50
y = 100
print(y)
50
100
150
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following correctly assigns values to multiple variables in a single line?
a, b, c = 10, 20, 30
a = b = c = 10, 20, 30
a b c = 10, 20, 30
a, b, c == 10, 20, 30
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to assign the value 10 to a variable x?
x == 10
x = 10
x <- 10
x => 10
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the type() function do in Python?
Checks the syntax of a variable
Prints the content of a variable
Displays the data type of a variable
Converts the data type of a variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code?
num1 = 15
num2 = 4
print(num1 * num2)
19
60
11
45
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly calculates 3 raised to the power of 4?
3 * 4
3 ** 4
pow(3, 4)
Both b and c
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Introduction & Basic Program Structure

Quiz
•
University
10 questions
Understanding Data and Encoding

Quiz
•
6th Grade - University
15 questions
Chapter 3 : SQL Command

Quiz
•
University
20 questions
Basic C# intro

Quiz
•
University
12 questions
PYTHON APTITUDE

Quiz
•
University
20 questions
Python Programming Concepts Quiz

Quiz
•
University
14 questions
Quiz-Java

Quiz
•
University
20 questions
21 MARET PRAK PEMROGRAMAN

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University