Python Basics Quiz
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
Richard Jones
Used 161+ times
FREE Resource
Enhance your content in a minute
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
10 questions
Programming - Basic String Manipulation
Quiz
•
2nd - 10th Grade
10 questions
Computer in the society
Quiz
•
2nd - 10th Grade
10 questions
Parts of Keyboard and Correct Typing
Quiz
•
4th - 8th Grade
12 questions
алгоритм python
Quiz
•
6th - 8th Grade
10 questions
Логические операции
Quiz
•
1st - 10th Grade
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
10 questions
Home Row Keys English/Spanish
Quiz
•
6th Grade
10 questions
Coding
Quiz
•
3rd - 6th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
42 questions
MAP Math Review
Quiz
•
5th - 6th Grade
20 questions
Thanksgiving Trivia!
Quiz
•
6th - 8th Grade
