Python Functions & Library

Quiz
•
Computers
•
12th Grade
•
Hard
Bessie Carl
Used 37+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code:
0
1
2
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code:
1 2 2
2 1 2
4 2 2
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
1 3
2 3
The program has a runtime error because x and y are not defined.
3 2
3 3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following piece of code?
4
5
1
An exception is thrown
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the below program?
x is 50Changed global x to 2Value of x is 50
x is 50Changed global x to 2Value of x is 2
x is 50Changed global x to 50Value of x is 50
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the function shown below (random module has already been imported)?
random.choice('sun')
sun
either s,u or n
u
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A package is a folder containing one or more Python modules. One of the modules in a package must be called _______.
__package__.py
init.py
main.py
__init__.py
__main__.py
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
String Methods

Quiz
•
9th - 12th Grade
10 questions
Pseudocode WHILE Loops

Quiz
•
10th - 12th Grade
14 questions
Do you know some Java basics?

Quiz
•
9th - 12th Grade
9 questions
Checkpoint 1 revision

Quiz
•
9th - 12th Grade
15 questions
CICS Test 2 Review

Quiz
•
9th - 12th Grade
15 questions
File Handling in Python - Grade 12 CBSE

Quiz
•
12th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
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