Important Notice:
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
|| CCC Result Nov 2025 ||
|| CCC Marksheet Aug 2025 ||
|| O Level Jul 2026 Reg. Form Last Date: 30/04/2026 ||
|| CCC Mar 2026 Exam Postponed ||
|| CCC/ O Level Exam Full Form ||
O Level
Notes
Follow us:
OLevelNotes
Home
O Level Notes
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
CCC
CCC Chapter Wise Notes
CCC Chapter Wise MCQ
CCC Modal Paper
CCC Previous Paper
CCC Assignment
CCC Online Test/Real Portal
Chapter Wise MCQ
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Model Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
O Level Real Test Portal
Old Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Practical Paper
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Assignment
M1-R5.1
M2-R5.1
M3-R5.1
M4-R5.1
Contact Us
ADCA Course
Introduction To Computer
Introduction To OS
MS Office
Tally Prime
Graphic Design
Web Design
Programming Language
Learn Typing
Typing Tutor
Typing Test
KCIT Student
Student Login
KCIT Student
M3-R5.1 — Scope & Modules MCQ
25 Questions • M3-R5.1
20:00
← Back
1
A module in Python is?
A
A function
B
A .py file containing Python code
C
A class
D
A database
2
To use a module in Python?
A
include module
B
require module
C
import module
D
use module
3
import math allows using?
A
Database functions
B
Math functions like sqrt(), pi
C
File handling
D
Network functions
4
from math import sqrt allows?
A
Importing entire math module
B
Using sqrt() directly without math. prefix
C
Deleting math module
D
Creating sqrt function
5
LEGB rule in Python refers to?
A
Error types
B
Loop control
C
Variable scope order: Local, Enclosing, Global, Built-in
D
List/Enum/Generator/Bool
6
A global variable is accessible?
A
Only inside functions
B
Only in classes
C
Throughout the entire program
D
Only in one file
7
__name__ == "__main__" is used to?
A
Import a module
B
Run code only when file is run directly (not imported)
C
Define a class
D
Set global variable
8
random module in Python is used for?
A
Database operations
B
Math calculations
C
Generating random numbers
D
File management
9
pip install packagename installs?
A
Python itself
B
A third-party Python package
C
An OS update
D
A browser plugin
10
os module in Python provides access to?
A
Database tables
B
Operating system functions (file, dir, env)
C
Internet
D
Math functions
11
Module in Python is?
A
A hardware component
B
A .py file containing functions/classes
C
A data type
D
A loop
12
import math does?
A
Creates math
B
Imports the math module
C
Deletes math
D
Prints math
13
from math import sqrt lets you use?
A
All math functions
B
Only sqrt() without math. prefix
C
Nothing
D
Only pow()
14
math.pi returns?
A
2.71
B
3.14159...
C
1.41
D
1.61
15
math.sqrt(16) returns?
A
8
B
2
C
4.0
D
16
16
__name__ variable is?
A
File path
B
Module name, __main__ if run directly
C
Variable count
D
Error handler
17
Local scope means?
A
Accessible everywhere
B
Inside current function only
C
Inside class only
D
Global
18
LEGB rule stands for?
A
Local, Enclosing, Global, Built-in scope order
B
Loop, End, Global, Basic
C
List, Element, Get, Boolean
D
Language, Expression, Grammar, Build
19
random.randint(1,10) returns?
A
Always 1
B
Random integer between 1 and 10
C
Always 10
D
Float number
20
Package in Python is?
A
A single file
B
Directory of modules with __init__.py
C
A function
D
A class
21
pip install package_name does?
A
Removes package
B
Installs a Python package
C
Creates package
D
Lists packages
22
datetime module provides?
A
Math functions
B
Date and time manipulation
C
File handling
D
Network operations
23
os module provides?
A
Math functions
B
Operating system interface functions
C
Web scraping
D
GUI creation
24
sys.argv contains?
A
System date
B
Command-line arguments
C
RAM size
D
CPU info
25
dir() function shows?
A
File directory
B
Names in current scope or object attributes
C
Only variables
D
System info
📋 Question Navigator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Answered
Not Answered
ℹ️ Quiz Info
Total Questions:
25
Time Limit:
20 min
Subject:
M3-R5.1
Passing:
60%
Attempt all questions before submitting. You can review your answers using the navigator above.
Answered:
0
/ 25
Submit Quiz