
Mastering Python Fundamentals

Quiz
•
Computers
•
Professional Development
•
Hard
Phani Kishore
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.txt
.cpp
.py
.java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
variable1
1variable
variable name
variable-name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression 3 * 1 ** 3?
1
9
0
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
You create a list in Python using square brackets, 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 curly braces, e.g., my_list = {1, 2, 3}.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function in Python?
method
def
define
function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a built-in data type in Python?
tuple
list
array
dictionary
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if' statement in Python?
To import modules in Python.
To execute code conditionally based on a boolean expression.
To define a function in Python.
To create a loop in Python.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Round-1 Technical Aptitude

Quiz
•
11th Grade - Professi...
20 questions
Python

Quiz
•
Professional Development
20 questions
DSP_Midterm Quiz

Quiz
•
Professional Development
12 questions
DECI - Week 6 - round

Quiz
•
Professional Development
15 questions
Code X Trade

Quiz
•
Professional Development
19 questions
Python Basic

Quiz
•
Professional Development
15 questions
coding

Quiz
•
KG - Professional Dev...
13 questions
git and github

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade