Python Basics - Quiz
Quiz
•
Computers
•
8th - 11th Grade
•
Hard
Jasy Liew
Used 27+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of the following identifier would NOT be accepted by Python?
MalaysiaBoleh100
global
pneumonoultra
FLAG
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of the following is the slicing operator?
[ ]
{ }
( )
/
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following lines of code?
var1 = 12
var1 = 23.4
var1 = "I love AI!"
print(var1)
12
23.4
I love AI!
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output from the following lines of code?
a = [2, 4, 8]
a[2] = 6
print(a)
[2, 4, 8]
[2, 6, 8]
[2, 4, 6]
[6, 4, 8]
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which function allows us to add one element to a list at a desired location?
append()
extend()
insert()
pop()
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How many parameters are there in the sum() function call below?
sum(1, 3, 5)
0
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of the following refers to a file containing Python statements and definitions?
function
module
block
attribute
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
LEDs on micro:bit
Quiz
•
8th Grade
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
10 questions
Tipuri de date
Quiz
•
10th Grade
10 questions
ICT Grade 8
Quiz
•
8th Grade
10 questions
Tin 11 - Bài 2 - Phần 1
Quiz
•
11th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
