Python Basics Quiz 1

Quiz
•
Computers
•
8th Grade
•
Medium
Shaun Morrison
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to print "Hello, World!"?
print("Hello, World!")
echo "Hello, World!"
printf("Hello, World!")
System.out.println("Hello, World!")
Answer explanation
The correct way to print "Hello, World!" in Python is using the print() function.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign the value 10 to a variable named number in Python?
number = 10
int number = 10
10 = number
number := 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
Greater
3
5
No output
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statements correctly uses `elif` in Python?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
High
Low
3
No output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a comparison operator?
+
=
==
*
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code snippet?
x is less than y
x is equal to y
x is greater than y
No output
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python - Flow control

Quiz
•
11th Grade
20 questions
Python Quiz - BPLCK105B

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
12 questions
HTML & Java

Quiz
•
9th Grade
20 questions
Mod 2 Test

Quiz
•
9th - 12th Grade
20 questions
ROUND 1 QUIZ FOR 1ST YEAR

Quiz
•
University
10 questions
Python Variables

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade