
Python 1
Authored by Mahesh Shinge
Computers
University
Used 7+ 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
Which symbol is used to indicate comments in Python?
//
#
/
<!--
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a variable in Python?
variable_name = value
variable_name <- value
value = variable_name
variable_name : value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, variables are:
Declared with a specific data type
Implicitly typed
Declared using the 'var' keyword
Only allowed in functions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in Python?
_myVar
123_var
My-Var
myVar2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
5
10
15
The code will raise an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the variable in this code?
int
float
str
bool
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
Greater than 5
Less than or equal to 5
10
The code will raise an error
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
Chapter 8 - Memory Management Strategies
Quiz
•
University
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
15 questions
GK Quiz
Quiz
•
University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Algoritma Remedial RPL
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