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
Similar Resources on Wayground
15 questions
Python and PseudoCode Quiz

Quiz
•
10th Grade - University
10 questions
Python list

Quiz
•
9th Grade
13 questions
Python Fundamentals and Programming

Quiz
•
11th - 12th Grade
10 questions
AP CSP - Python Lists and Arrays

Quiz
•
9th - 12th Grade
10 questions
Tes Sumatif Fase E

Quiz
•
9th - 12th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
10 questions
Python массив

Quiz
•
9th - 12th Grade
10 questions
Exercícios de Array no Python

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade