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
Жанар214

Quiz
•
9th Grade - University
11 questions
GCSE Computer Science Paper 2: Topic 2.2

Quiz
•
10th Grade
13 questions
Programming Quiz

Quiz
•
10th Grade
15 questions
Milestone Exkul SMP SMA - Q8_2022_Python Exploration

Quiz
•
6th - 8th Grade
9 questions
advanced storage techniques ( arrays , DataFrame)

Quiz
•
9th - 10th Grade
10 questions
SLR 9 - Advanced Programming Techniques - part one

Quiz
•
10th Grade
11 questions
Quiz 5: Internet safety, cyber security and encryption

Quiz
•
7th - 8th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade