
Python Programming Basics
Authored by Dheepan G
Information Technology (IT)
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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).
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Excel Pokročilí – MAHR – Test pro účastníky (Wayground)
Quiz
•
Professional Development
20 questions
React Redux
Quiz
•
Professional Development
15 questions
Domínio 4
Quiz
•
Professional Development
20 questions
AV2 - INFORMÁTICA BÁSICA E MANUTENÇÃO DE MICROS
Quiz
•
Professional Development
16 questions
Scorevision Cloud Basics Quiz
Quiz
•
Professional Development
15 questions
Act. 3: Desarrollo de Formularios
Quiz
•
Professional Development
15 questions
Network Security and Protocols Quiz
Quiz
•
Professional Development
20 questions
Project Retrospectives
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...