
Introduction to Python Programming
Quiz
•
Other
•
University
•
Practice Problem
•
Easy
M Pooja
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.py
.java
.txt
.cpp
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable in Python?
You create a variable in Python by using the syntax: value = variable_name.
You initialize a variable in Python by writing: variable_name : value.
You declare a variable in Python with the command: var variable_name;
You create a variable in Python by using the syntax: variable_name = value.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function in Python?
function
def
define
method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to comment in Python?
/* This is a comment */
# This is a comment
// This is a comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 ** 3)?
6
9
8
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
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).
You create a list in Python by using the list() function without any arguments.
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to read input from the user?
input()
getUserInput()
readInput()
fetchInput()
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
10 questions
UK Knowledge Test
Quiz
•
University
10 questions
Alien Hand Syndrome
Quiz
•
University
10 questions
Introduction to CSS
Quiz
•
University
15 questions
Quiz on Islamic Finance
Quiz
•
University
10 questions
QUIZ 1
Quiz
•
University
10 questions
SHINE
Quiz
•
University
10 questions
EFFECTIVE GROUP DISCUSSION
Quiz
•
9th Grade - University
10 questions
Business Ethics
Quiz
•
University
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 Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
