
Câu hỏi về Python

Quiz
•
Other
•
9th Grade
•
Easy
nnm nnm
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of print(2 ** 3)?
6
8
9
23
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is used to define a function in Python?
func
define
def
function
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the data type of x = [1, 2, 3]?
Tuple
List
Dictionary
String
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the len() function do?
Returns the memory size of an object
Returns the length of a string or collection
Returns the largest element in a string
Returns the last element of a list
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which keyword is used to exit a loop in Python?
stop
break
exit
end
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of print("Hello" + "World")?
Hello World
HelloWorld
Hello+World
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to write a single-line comment in Python?
// This is a comment
/* This is a comment */
# This is a comment
$ This is a comment $
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
DNA Fingerprinting

Quiz
•
9th - 10th Grade
25 questions
Python While Loops

Quiz
•
9th Grade
29 questions
Culinary Conversions & Measurements

Quiz
•
7th - 12th Grade
25 questions
piggy

Quiz
•
1st - 12th Grade
25 questions
JROTC Cadet Ranks

Quiz
•
9th - 12th Grade
25 questions
Sports Quiz - Cognita

Quiz
•
7th Grade - Professio...
26 questions
How Nerdy Are You?

Quiz
•
5th - 12th Grade
25 questions
Inside the USA Your School

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade