
Python Programming Basics
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Dheepan G
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A variable in Python is a type of function.
A variable in Python is a named reference to a value stored in memory.
A variable in Python is a fixed value that cannot change.
A variable in Python is a command used to execute code.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid data type in Python?
string
boolean
float
int
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression 5 + 3 * 2?
16
11
8
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a function in Python?
function function_name(parameters) {}
function_name = (parameters) => {}
create function_name(parameters):
def function_name(parameters): # function body
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function?
procedure
def
function
method
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if' statement in Python?
To execute code conditionally based on a boolean expression.
To define a function in Python.
To import modules in Python.
To create a loop in Python.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
You create a list in Python by using the list() function, e.g., my_list = list(1, 2, 3).
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
You create a list in Python using parentheses, e.g., my_list = (1, 2, 3).
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Introdução à Programação Orientada a Objetos
Quiz
•
Professional Development
20 questions
svsvs
Quiz
•
Professional Development
15 questions
INTRO DE INF. FORENSE
Quiz
•
Professional Development
20 questions
HyQuizz_Mùa 3_Day 2
Quiz
•
Professional Development
15 questions
FOS Quiz 1
Quiz
•
Professional Development
15 questions
Gestores Bibliográficos
Quiz
•
Professional Development
15 questions
Explorando a Lógica e Tabelas Verdade
Quiz
•
Professional Development
20 questions
Computer Hardware Quiz
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
20 questions
Context Clues: Multiple Meaning Words
Quiz
•
Professional Development
18 questions
Do or Does
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...
