I PU MIDTERM MODEL PAPER 2 Smpuc
I PU MIDTERM MODEL PAPER 2 Smpuc
I PU MIDTERM MODEL PAPER 2 Smpuc
PART–A
Answer ALL the questions, each question carries ONE mark. 20 x1=20
3. Which type of software typically includes operating system, device drivers, and utilities?
(a)System Software (b)Application Software
(d) Customized Software(d) General purpose software
5. What is the binary equivalent of the ASCII value for the character ‘D’?
(a) 1000100 (b)1010001
(c)1100001 (d)1110100
10. Which step in a problem solving involves identifying the logical step to reach a solution
(a)Analyzing the problem (b) Developing the Algorithm
(c)Coding (d) Testing and Debugging
11. Identify the types of error in following segment of Python program
A=10
B=20
Sum=A+B
print (‘sum of two numbers is=’ Sum) # comma missing
(a)Syntax Error (b) Runtime Error (c) Logical Error (d)No Error
12. Which of the following is an essential skill for a computer science student?
(a) Problem solving (b)Coding
(c)Debugging (d)All of the above
II Fill in the blanks choosing the appropriate word/words from those given in the brackets.
(Unicode, Implicit, IoT, Sets, Data, Explicit)
16. Unorganized facts are called as . Data
17. provides a unique number for every character irrespective of device, operating system or software
application. Unicode
18. The network which consists of different devices like computer, smart phone, smart watch is called .
IoT
20. Data type conversion is done automatically by Python and is not instructed by the user is known as
conversion. Implicit
PART-B
III Answer any FOUR questions. Each question carries TWO marks: 4x2 =8
PART-C
IV Answer any FOUR questions. Each question carries THREE marks: 4x3=12
PART-D
V Answer any FOUR questions, Each question carries Five marks: 4x5=20
Input Unit: Devices like keyboard and mouse that input data into the computer.
Output Unit: Devices like monitors and printers that output data from the computer.
Memory Unit: Stores data and instructions (RAM and ROM).
Arithmetic and Logic Unit (ALU): Performs arithmetic and logical operations.
Control Unit: Directs the operation of the processor.
Central Processing Unit (CPU): The brain of the computer, combining the ALU and Control Unit.
Debugging: The process of identifying, analyzing, and removing errors found during testing.
Debugging
Purpose: To locate and fix the defects or errors identified during testing.
Process: Involves analyzing the code, tracing the execution flow, and making corrections to eliminate
the root cause of the problem.
Tools: Uses tools like debuggers, log files, and breakpoints.
Outcome: Ensures that the software runs smoothly and meets the desired functionality.
40.Explain arithmetic operators in Python with example.
41.Write a Python program to interchange the values of two variable using third variable.
VI Answer any TWO questions, Each question carries FIVE marks 2x5=10
1. Start
2. Input two numbers, num1 and num2.
3. Input the operation to be performed (+, -, *, /).
4. Check the operation:
o If the operation is +, then:
Add num1 and num2.
Output the result.
o If the operation is -, then:
Subtract num2 from num1.
Output the result.
o If the operation is *, then:
Multiply num1 and num2.
Output the result.
o If the operation is /, then:
Check if num2 is not zero:
If num2 is not zero, divide num1 by num2.
Output the result.
If num2 is zero, output an error message (“Division by zero is not allowed”).
5. End
Example in Python
*************