
Python Quiz

Quiz
•
Computers
•
12th Grade
•
Easy
A Saaqib
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The order of precedence in the Python language is:
A) Exponential
B) Parentheses
C) Division
D) Multiplication
E) Subtraction
F) Addition
a. B,A,D,C,F,E
b. A,B,D,C,F,E
c. A,B,C,D,E,F
d. B,A,D,C,E,F
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The value of the Python expression given below would be:
4+2**5//10
77
0
3
7
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s='{0}, {1}, and {2}’
s.format(‘hi’, ‘great’, ‘day’)
‘hi, great, and day’
‘hi great and day’
‘hi, great, day’
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which arithmetic operators can we NOT use with strings?
–
+
*
All of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Is this code valid in Python?(in Interpreter Mode)
>>> m=6,7,8,9
>>> m
No, many values will unpack
Yes, (6,7,8,9) will be printed
Yes, 6 will be printed
Yes, [6,7,8,9] will be printed
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The output of this Python code would be:
>>> x={1:”X”,2:”Y”,3:”Z”}
>>> del x
the del method does not exist for dictionary
the del would delete the values present in dictionary
the del would delete the entire dictionary
the del would delete all the keys in dictionary
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following forces an expression to be converted into specific type?
Implicit type casting
Mutable type casting
Immutable type casting
Explicit type casting
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
JavaScript Basics CodeHS

Quiz
•
7th - 12th Grade
20 questions
Multimedia

Quiz
•
12th Grade - University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
18 questions
Web Design Advanced HTML CSS

Quiz
•
9th - 12th Grade
20 questions
Microsoft PPT. - Scavenger Hunt

Quiz
•
6th - 12th Grade
20 questions
uCertity SDA Lesson 2 Quiz

Quiz
•
8th - 12th Grade
20 questions
Computer Applications

Quiz
•
9th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University