Session 2 Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Mohaned Emad
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to declare a variable in Python?
x = 5
int x = 5
var x = 5
declare x = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store textual data in Python?
int
float
bool
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python and store it in a variable named name?
name = input_string("Enter your name: ")
name = get_input("Enter your name: ")
name = input("Enter your name: ")
name = get_string("Enter your name: ")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code if the user enters "Alice"?
Hello, name
Enter your name: Alice
Hello, Alice
Hello,
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code?
7
Error
2
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a number stored in variable x is greater than 10?
if x is greater than 10
if x > 10 then:
if (x > 10)
if x > 10:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
x = 3
x is not greater than 5
x is greater than 5
Error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
15 questions
GAME QUIZ!!
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
Quiz
•
University
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
15 questions
C++ Switch and If Else Statements
Quiz
•
University
10 questions
Selection Control Structure Quiz
Quiz
•
6th Grade - University
10 questions
ทำความรู้จักกับภาษาไพทอน
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
