
Python - Session 2 - L2 - Built in Functions & Programs
Presentation
•
Computers
•
6th Grade - Professional Development
•
Medium
SURBHI BHARDWAJ
Used 5+ times
FREE Resource
12 Slides • 22 Questions
1
by SURBHI BHARDWAJ
2
Multiple Choice
Which is the Python logo?
3
Multiple Choice
The Python interpreter takes the code that you write and converts it to the language that the computer’s hardware understands.
TRUE
FALSE
4
Process the statements of your script in a sequential fashion.
Compile the source code to an intermediate format known as bytecode.
Ship off the code for execution.
The whole process to run Python scripts is known as the Python Execution Model.
5
Multiple Choice
When you try to run Python scripts, a multi-step process begins. In this process the interpreter performs three steps:
1. Ship off the code for execution.
2. Process the statements of your script in a sequential fashion.
3. Compile the source code to an intermediate format known as bytecode.
Identify the correct order of these steps:
3 → 2 → 1
2 → 3 → 1
1 → 3 → 2
6
7
Multiple Choice
What is the extension on a Python file name?
.py
.xsl
.ppt
.docx
8
Multiple Choice
9
Multiple Choice
10
11
Multiple Choice
Escape sequence is represented by a ____ followed by one or more characters
Front slash
Double Quote
Single Quote
Back Slash
12
Multiple Choice
An escape sequence represents how many characters ?
"\t"
3
2
1
4
13
14
Multiple Choice
To include the use of functions which are present in the random library, we must use the option:
import random
random.h
import.random
random.random
15
Multiple Choice
random.randrange(6)
0,1,2,3,4,5,6
1,2,3,4,5,6
0,1,2,3,4,5
1,2,3,4,5
16
Multiple Choice
random.randint(3,8)
4,5,6,7
3,4,5,6,7
3,4,5,6,7,8
0,1,2,3,4,5,6,7,8
17
Multiple Choice
random.random() generates a floating point number between _____ and ______
1 and 2
1 and 0
0 and 1
0 and 10
18
Multiple Choice
str="Red\
block\
a"
Size of str is 11. True/False ?
True
False
19
20
Fill in the Blanks
what is the return type of input in python
Type answer...
21
22
Multiple Choice
What is the name of this symbol (>>>)?
Chevrons
Hash tags
Colon
Semi Colon
23
24
Multiple Choice
What is the displayed value for Python coding below:
print(min(100, 200, 300, 400))
100
200
300
400
25
Multiple Choice
What is the displayed value for Python coding below:
print(max(100, 200, 300, 400))
100
200
300
400
26
Multiple Choice
What is the displayed value for Python coding below:
print(math.pi)
3.141592653589793
3.142
31.41592653589793
π
27
Multiple Choice
What is the displayed value for Python coding below:
print(min(-100, -200, 100, 200))
-100
-200
100
200
28
Multiple Choice
What is the displayed value for Python coding below:
print(max(-100, -200, +100, +200))
+100
+200
100
200
29
Multiple Choice
What is the displayed value for Python coding below:
print(pow(2, 2))
4
8
2
16
30
31
Fill in the Blanks
what is the return type of eval() in python?
Type answer...
32
33
34
by SURBHI BHARDWAJ
Show answer
Auto Play
Slide 1 / 34
SLIDE
Similar Resources on Wayground
28 questions
Oscillations
Presentation
•
KG - Professional Dev...
24 questions
Cells and Cell Theory
Presentation
•
6th Grade - University
27 questions
Photosynthesis and Cellular Respiration
Presentation
•
7th Grade - University
26 questions
Electric and electronic devices
Presentation
•
KG
27 questions
Ratios Lesson - Interactive
Presentation
•
KG - Professional Dev...
24 questions
L4 Slides - Flat-file databases - Y5
Presentation
•
KG - University
23 questions
Composite Figures Review
Presentation
•
6th Grade - University
26 questions
Html link
Presentation
•
6th Grade - University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
32 questions
Unit 3: Intro to App Design (APCSP 22-23, Code.org)
Quiz
•
9th - 12th Grade
43 questions
Computer & Internet Basics
Quiz
•
6th Grade
31 questions
Computer Basics Review-2
Quiz
•
6th Grade
30 questions
[AP CSP] Spreadsheets Review
Quiz
•
9th Grade
10 questions
Digital Citizenship: Part 1
Quiz
•
6th - 8th Grade
15 questions
AP CSP - Code.org Unit 3 Review
Quiz
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade