
Python test 1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
shahin makubhai
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
n Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is the correct way of declaring and initializing a variable, x with the value 7?
int x
x=7
int x=7
x=7
declare x=7
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of statement 2**2**2**2
16
256
32768
65536
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statement is False?
Variable names can be arbitrarily long.
They can contain both letters and numbers.
Variable name can begin with underscore.
Variable name can begin with number.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code: print 9//2
4
4.5
4.0
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid variable name in Python?
_var
var_name
var11
5var
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the maximum length of an identifier in python?
32
31
63
None of the above
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
DBC CHAPTER 3 - REVISION
Quiz
•
University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
Information Management - QUIZ
Quiz
•
University
15 questions
GAME QUIZ!!
Quiz
•
University
15 questions
ADVACOMT-Quiz No.1 (final term)
Quiz
•
University
20 questions
Fintech
Quiz
•
University
15 questions
Firewall and Network Security
Quiz
•
University
18 questions
PBO Inheritance Episode 2
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
