Year 11 T1 PG1 Python

Quiz
•
Computers
•
11th Grade
•
Medium
Dotun Onasanya
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is a valid Python variable name?
2var
var_2
var@2
var-2
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
How do you define a function in Python?
function name():
def function_name():
define function_name():
func function_name():
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the purpose of a function?
To store data
To perform a specific task
To create variables
To manage files
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which data structure is used to store multiple items in Python?
Variable
Function
List
Loop
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which symbol is used to access an element in a list?
.
()
[]
{}
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
How do you create a dictionary in Python?
my_dict = {}
my_dict = []
my_dict = ()
my_dict = ''
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which function is used to open a file in Python?
open_file()
file_open()
open()
read_file()
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
PTS CYBER SECURITY

Quiz
•
11th Grade
40 questions
INFORMATIKA KECANTIKAN

Quiz
•
1st Grade - University
40 questions
LATIHAN ASAS - INFORMATIKA

Quiz
•
10th Grade - University
45 questions
Intro to IT Semester Exam Review

Quiz
•
9th - 12th Grade
41 questions
Starting Steps with Excel

Quiz
•
9th - 12th Grade
37 questions
CSS and HTML Vocabulary

Quiz
•
9th - 12th Grade
35 questions
INFORMATIKA 1

Quiz
•
11th Grade
40 questions
WJEC ICT Unit 3 Mock Revision

Quiz
•
10th - 11th 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