
Python Basics for Grade 8
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Hard
ahmed HMED
Used 1+ times
FREE Resource
Enhance your content in a minute
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('Hello, World!')?
Hello, World
Hello World!
Hello, World!
Hello, World!!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you use the input function to get user input?
Use the print() function to get user input.
Call the input() method on a string object.
Use the read() function to capture user input.
Use the input() function to get user input.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a simple if statement to check if a number is positive.
if (number == 0) { /* number is zero */ }
if (number < 0) { /* number is negative */ }
if (number > 0) { /* number is positive */ }
if (number >= 0) { /* number is non-negative */ }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? print(5 > 3)
False
True
5 < 3
3 > 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate strings in a print statement?
Strings can be concatenated by placing them next to each other without any operator.
Use the '+' operator to concatenate strings.
Use the '*' operator to concatenate strings.
You can concatenate strings by using the '&' operator.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a for loop that prints numbers from 1 to 5.
for i in range(1, 5): print(i)
for i in range(1, 6): print(i)
for i in range(1, 10): print(i)
for i in range(0, 6): print(i)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the input function in Python?
To take input from the user.
To store data in a variable.
To execute a loop in Python.
To define a function in Python.
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
42 questions
ALGORITMA PEMROGRAMAN DALAM KEHIDUPAN SEHARI-HARI
Quiz
•
8th Grade
38 questions
7-20
Quiz
•
7th Grade - University
45 questions
Computer Specifications Quiz
Quiz
•
8th Grade
46 questions
ON TAP LOP 7 GHKII
Quiz
•
8th Grade
40 questions
ASTS INFORMATIKA KELAS 8
Quiz
•
8th Grade
40 questions
SAS INFORMATIKA KELAS 8
Quiz
•
8th Grade
37 questions
Domain 5 Tech + Data and Databases Practice Q 37
Quiz
•
8th Grade
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
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
