
Python test 1

Quiz
•
Computers
•
University
•
Hard
shahin makubhai
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Computer Science Quiz 02

Quiz
•
10th Grade - University
20 questions
Week 6 Quiz

Quiz
•
University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
20 questions
PHP Quiz 1

Quiz
•
University
20 questions
Grade 9 Quiz 9A

Quiz
•
9th Grade - University
15 questions
coding

Quiz
•
KG - Professional Dev...
20 questions
Python Functions and File Operations Quiz

Quiz
•
University
20 questions
Round-1 Technical Aptitude

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University