Python Basics Quiz

Quiz
•
Computers
•
6th Grade
•
Hard
Richard Jones
Used 161+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign the value 10 to a variable named `age`?
A) age == 10
B) age = 10
C) 10 = age
D) "age" = 10
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is a string?
A) "123"
B) 123
C) 12.3
D) 1+2+3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print the word "Hello" in Python?
A) print(Hello)
B) print("Hello")
C) echo "Hello"
D) console.log("Hello")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? `print("Fish" + "4")`
A) Fish4
B) Fish 4
C) Fish+4
D) Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get input from the user?
A) get()
B) input()
C) read()
D) fetch()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following operation: `print("8")
A) "eight"
B) 8
C) eight
D) "8"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert the string "123" into an integer in Python?
A) int("123")
B) "123".int()
C) integer("123")
D) convert("123", int)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet: `print(2 * 3)`?
A) 6
B) 8
C) 9
D) An error
Similar Resources on Wayground
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
10 questions
Python Into Quiz

Quiz
•
6th - 8th Grade
9 questions
Python Quiz on functions

Quiz
•
6th - 8th Grade
10 questions
Урок03. Переменные. Ввод-вывод

Quiz
•
6th - 7th Grade
10 questions
5 . Input Control LED

Quiz
•
6th - 8th Grade
9 questions
Python Basics

Quiz
•
6th - 12th Grade
11 questions
G(6) Quiz L3.2 - 3.3

Quiz
•
6th Grade
10 questions
Introduction to Python - If and Else

Quiz
•
1st - 6th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

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

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade