
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
ADB Quiz #1
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
17 questions
Archivos
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
20 questions
Fotogrametri dan Penginderaan Jauh
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
