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
Home
Practical Paper
M3-R5.1 Practical Paper — Set 1
M3-R5.1 Practical Paper — Set 1
25 Questions
M3-R5.1
NIELIT O Level M3 Python Practical exam questions.
1
What will be output of: for i in range(3): print(i)?
1 Mark
A
1 2 3
B
0 1 2
C
0 1 2 3
D
1 2
2
Which function converts a string to uppercase in Python?
1 Mark
A
upper()
B
toUpper()
C
capitalize()
D
UP()
3
How do you read all content of a file into a string?
1 Mark
A
f.readlines()
B
f.read()
C
f.readline()
D
f.get()
4
Which syntax creates a dictionary comprehension?
1 Mark
A
{k:v for k,v in dict}
B
[k:v for k,v in dict]
C
(k:v for k in dict)
D
{k,v for dict}
5
What does list.extend([1,2,3]) do?
1 Mark
A
Adds [1,2,3] as one element
B
Adds 1, 2, 3 as separate elements
C
Replaces the list
D
Sorts the list
6
Global variable inside a function requires keyword?
1 Mark
A
public
B
global
C
static
D
extern
7
Output of: print(list(range(2,10,3)))?
1 Mark
A
[2,5,8]
B
[2,4,6,8]
C
[3,6,9]
D
[2,3,4]
8
Which numpy function finds the mean of an array?
1 Mark
A
np.sum()
B
np.mean()
C
np.avg()
D
np.total()
9
How to check if a key exists in a dictionary d?
1 Mark
A
d.has(key)
B
key in d
C
d.contains(key)
D
d.find(key)
10
String slicing s[::2] does what?
1 Mark
A
Reverses string
B
Returns every 2nd character
C
Returns first 2 chars
D
Returns last 2 chars
11
Python script to add 2 numbers: a=5, b=3, print(a+b) outputs?
1 Mark
A
53
B
8
C
15
D
Error
12
To read a file: open("test.txt","r").read() returns?
1 Mark
A
File name
B
Entire file content as string
C
First line only
D
Error
13
List comprehension [x*2 for x in range(5)] gives?
1 Mark
A
[0,1,2,3,4]
B
[0,2,4,6,8]
C
[2,4,6,8,10]
D
[1,2,3,4,5]
14
try-except block handles?
1 Mark
A
Loops
B
Exceptions/errors
C
Functions
D
Imports
15
To sort a list in descending: list.sort(reverse=True). True or False?
1 Mark
A
True
B
False
C
Only for numbers
D
Only for strings
16
String formatting: f"Name: {name}" is called?
1 Mark
A
Concatenation
B
f-string formatting
C
Template string
D
Raw string
17
with open("file.txt","w") as f: f.write("Hello") does?
1 Mark
A
Reads file
B
Writes "Hello" to file and auto-closes
C
Appends
D
Deletes file
18
dict.get("key", "default") returns "default" when?
1 Mark
A
Always
B
When key does not exist
C
When key exists
D
Never
19
lambda x: x*2 applied to 5 returns?
1 Mark
A
5
B
7
C
10
D
25
20
numpy array [1,2,3] * 2 gives?
1 Mark
A
[1,2,3,1,2,3]
B
[2,4,6]
C
Error
D
[1,2,3,2]
21
enumerate() in for loop provides?
1 Mark
A
Only values
B
Index and value pairs
C
Only indices
D
Only length
22
zip() function combines?
1 Mark
A
Strings only
B
Multiple iterables element by element
C
Files
D
Directories
23
To check type: isinstance(5, int) returns?
1 Mark
A
False
B
True
C
Error
D
5
24
list.extend([4,5]) vs append([4,5])?
1 Mark
A
Same result
B
extend adds each element, append adds list as one element
C
extend fails
D
append is faster
25
os.getcwd() returns?
1 Mark
A
Home directory
B
Current working directory
C
Root directory
D
Temp directory
Actions
Print / Save as PDF
Back to Practical Papers
Paper Info
Total Questions:
25
Total Marks:
25
Time:
20 min
Subject:
M3-R5.1
Online Practical Portal
CCC / O Level Real Test Portal
M1-R5.1 Online Practical
M2-R5.1 Online Practical
M3-R5.1 Online Practical
M4-R5.1 Online Practical