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 Arrays Quiz P7

Quiz
•
11th Grade
14 questions
Arrays & Strings in programming

Quiz
•
8th Grade
12 questions
Coding Vocabulary Words

Quiz
•
8th Grade
10 questions
Analisis Data Informatika Kelas X

Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
L1 Console, Variables and Creating a Program

Quiz
•
8th Grade
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python

Quiz
•
1st - 11th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 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
Discover more resources for Computers
11 questions
Standard Response Protocol

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

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

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade