ONE 6th FORM Introduction to Python Basics

Quiz
•
Computers
•
11th Grade
•
Medium

Lorna Jarrett
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A type of fruit
A storage location identified by a memory address
A type of loop
A Python function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid data type in Python?
Integer
String
Boolean
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```python x = 5 y = 10 print(x + y) ```
15
510
5
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a control structure in Python?
If-else statement
For loop
While loop
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python if 3 > 2: print("Yes") else: print("No") ```
Yes
No
Error
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in Python?
A block of code that performs a specific task
A type of variable
A loop
A data type
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
`function myFunction():`
`def myFunction():`
`create myFunction():`
`define myFunction():`
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
10 questions
Edhesive Python Unit 4: Test Review

Quiz
•
10th - 11th Grade
12 questions
Python Loops

Quiz
•
9th - 11th Grade
16 questions
Python Basics

Quiz
•
KG - University
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade