Sample Question Paper: Programming and Problem Solving Through Python (M3-R5) - O Level
इस पोस्ट में हम आपके लिए NIELIT O Level NEW Syllabus में M3 R5 Pyhton Model paper New syllabus लेकर आये है एग्जाम का पैटर्न बड़ी आसानी से समझ में आ जायेगा |
1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.
2. PART ONE is to be answered in the TEAR-OFF ANSWER SHEET only, attached to the question paper, as per the instructions contained therein. PART ONE is NOT to be answered in the answer book.
3. Maximum time allotted for PART ONE is ONE HOUR. Answer book for PART TWO will be supplied at the table when the answer sheet for PART ONE is returned. However, candidates, who complete PART ONE earlier than one hour, can collect the answer book for PART TWO immediately after handing over the answer sheet for PART ONE.
TOTAL TIME: 3 HOURS TOTAL MARKS: 100
(PART ONE: 40; PART TWO: 60)
PART ONE
(Answer all the questions; each question carries ONE mark)
1. Each question below gives a multiple choices of answers. Choose the most appropriate one.
1.1 The _______ provides pictorial representation of given problem.
(a) Algorithm
(b) Flowchart
(c) Pseudocode
(d) All of these
1.2_______ is a procedure or step by step process for solving a problem.
(a) Algorithm
(b) Flowchart
(c) Pseudocode
(d) All of these
1.3 The ______ symbol is used at the beginning of a flow chart.
(a) Circle
(b) Rectangle
(c) Diamond
(d) None of these
1.4 What will be the output of the following code:
Print type(type(int))
(a) type ‘int’
(b) type ‘type’
(c) error
(d) 0
1.5 what is the output of the following code:
L=[‘a’,’b’,’c’,’d’]
Print “”.join[l]
(a) Error
(b) None
(c) abcd
(d) [‘a’,’b’,’c’,’d’]
1.6 np.eye() is used for creating:
(a) Identity Matrix
(b) Upper triangle Matrix
(c) Lower Triangle Matrix
(d) None of the above
1.7 What is the output of the code print(9//2)
(a) 4.5
(b) 4.0
(c) 4
(d) Error
1.8 What is the output of the following program :
i = 0
while i< 3:
print i
i++
print i+1
(a) 0 2 1 3 2 4
(b) 0 1 2 3 4 5
(c) Infinite loop
(d) 0 1 2 3
ERROR
1.9 Debugging is used to:
(a) Find errors from the program
(b) Check the functionality of the program
(c) Black box testing
(d) All of the above
1.10 The function which reads one line from standards input and returns it as a string (removing the trailing newline)
(a) raw_input
(b) input
(c) eval
(d) accept
2. Each statement below is either TRUE or FALSE. Identify and mark them accordingly in the answer book.
2.1 Numpy is a tool for data visualization. False
2.2 The break statement is used for exiting from the loop to the statement following the close of the loop. True
2.3 The scope rule in Python are summarized as ELGB (enclosed, local, global, built-in). False
2.4 Strings in Python are mutable.False
2.5 The symbol used for both input and output is
2.6 if list1=[10,20,30], then operation list1*2 returns [20,40,60].False
2.7 The symbol used for conditional statement in a flow chart is .
2.8 You cannot obtain a value in a dictionary using a key for a single element. False
2.9 It is mandatory to have __main__ function in python. False
2.10 Python allows you to assign a single value to multiple variables simultaneously. True
3. Match words and phrases in column X with the nearest in meaning in column Y.
Column X | Column Y | ||
---|---|---|---|
3.1 | Data structure used in recursion 2 | 1 | Numpy |
3.2 | Function takes a list of lines to be written to file 5 | 2 | Stack |
3.3 | The function that yields current position in the file 3 | 3 | tell() |
3.4 | The operator used for concatenating two strings 9 | 4 | write() |
3.5 | Statement used for error checking 10 | 5 | writelines() |
3.6 | The function used to find power of a number 7 | 6 | Tuple |
3.7 | Array processing package 1 | 7 | pow() |
3.8 | Immutable object 6 | 8 | exp() |
3.9 | Key value pair | 9 | + |
3.10 | The operator used to calculate remainder after division | 10 | Assert |
4. Fill in the blanks in 4.1 to 4.10 below, by choosing appropriate words and phrases given in the list below:
4.1 The __________ command is used to take input from the keyboard.
4.2 The __________function is used to convert a string value to int.
4.3 The function used to evaluate the value of a string is _________
4.4 The _____________ function takes the parameter filename and the mode during file processing.
.
4.5 List structure in python where elements are stored in ___________ parenthesis.
4.6 The __________ statement lets the program go through the piece of code without performing any action.
4.7 _________ operator repeats a list for the given number of items.
4.8 _________ is a set of functions you want to include in your application.
4.9 The structure having keys and values is called ____________.
4.10 The _________ function generates a sequence of numbers from 1 to n.
PART TWO
(Answer any FOUR questions)
5.
a. Make a flow chart to input any number and find its factorial and print.
b. Explain the role of linker and loader in compilation.
c. Write a flowchart that finds the sum of series:
s=1+x/1!+2x/2!+3x/3!+ upto n terms
d. What is a NumPy array. How they are different from lists?
(5+2+5+3 )
6.
a. Write a recursive function to find the sum of digits of a number.
b. Write a program that takes a sentence as input from the user and returns the frequency of each letter .Use a variable of dictionary type to maintain the count.
c. Program to check whether a string is palindrome or not.
(5+5+5)
7
a. Take an array of 2 rows and three columns, populate it and find the transpose.
b. Explain the following with example:
1. LEGB rule
2. Seek() function
3. Tell()
4. String slicing
5. List comprehension
(5+10)
8
a. Write a function that takes data to be stored in the file f1 as interactive input till user responds with nothing as input. Each character taken as input rom the user must be capitalized and stored in file f1.
b. Write a function that reads the contents of the file myfile.txt and counts the number of alphabets, lowercase letters, uppercase letters, digits and no of words.
c. Take two NumPy arrays having two dimensions. Concatenate the arrays on axis 1.
( 6+6+3)
9
a. Write a recursive function to count the sum of digits of a number
b. Write a program that takes m as an input parameter and creates a list of m lists such that xth list contains first three multiples of x.
c. Store the monthly earnings of a year of a store splitting up the earnings by quarter into a list of lists. Retrieve the earnings of every month in a loop and display the quarter with maximum earnings.
Tags:
O level python model paper,
New syllabus Python m3 r5 model paper,
Sample question paper python o level,
Programming and problem solving through Python
0 Comments
Hey, What do you think about this post