I PU MIDTERM MODEL PAPER 2 Smpuc

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

MODEL QUESTION PAPER-1

Class: I PUC Academic Year: 2024-25


Subject: Computer Science (41) Maximummarks: 70
Time:03 Hrs. No.ofQuestions:44
Instructions:
(a) The question paper has Five parts namely A, B, C, D and E.
(b) For Part-A questions, only the first written answers will be considered for
evaluation.
(c) For question having diagram alternate questions are given at the end of the
question paper in a separate section (Part-E) for visually challenged students.

PART–A
Answer ALL the questions, each question carries ONE mark. 20 x1=20

I Select the correct answer from the choices given.


1. Which device is considered the first computing device?
(a)Abacus (b)Pascaline (c)Analytical Engine (d)EDVAC

2. Which type of memory is volatile and used for temporary storage?


(a) RAM (b) ROM (c) HDD (d) SSD

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

4. What is the base value of the binary number system?


(a)2 (b)8 (c)10 (d)16

5. What is the binary equivalent of the ASCII value for the character ‘D’?
(a) 1000100 (b)1010001
(c)1100001 (d)1110100

6. What is the decimal equivalent of the Octal number (23)8?


(a) 18 (b) 19 (c)20 (d)2 1

7. What does VR stands for?


a)Virtual Robot (b) Visual Reality (c) Virtual Reality (d)Visual Robot

8. What is Big data characterized by?


(a) Low volume (b)High complexity
(c)Simple structure (d)Low variety

9. What does the Diamond shape in a flow chart represent?


(a)Process (b) Decision (c) Input/Output (d)Start/End

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

13. What is the extension of Python source code?


(a). java (b).py (c).exe (d).txt
14. Which of the following is not a Python keyword on Python?
(a)while (b)else (c)pass (d)print

15. Whichof the following is an invalid variable in Python?


(a)var1 (b)_var (c)1var (d) var_1

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

19. is mutable data type in Python. Sets

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

21. Expand RAM and ROM.


RAM: Random Access Memory ROM: Read-Only Memory

22. Explain Cipher.


Cipher means something converted to a coded form to hide/conceal it from others. It is also called
encryption (converted to cipher) and sent to the receiver who in turn can decrypt it to get back the
actual content.
23. What is Machine learning?
Machine Learning is a subset of artificial intelligence that involves training algorithms to learn from
and make predictions or decisions based on data. It enables systems to improve their performance over
time without being explicitly programmed.

24. Name any two system software.


Operating System (e.g., Windows, Linux)
Device Drivers (e.g., printer drivers, graphics drivers)
25. Write any two benefits of Pseudocode
Clarity: Helps in understanding the logic of the algorithm without worrying about syntax.
Ease of Translation: Can be easily converted into actual programming code.

26. Mention any two repetitive statements.


for loop: Used to iterate over a sequence (e.g., for i in range(10):).
while loop: Repeats a block of code as long as a condition is true (e.g., while condition:).

27. Write any two features of Python.


Easy to Read and Write: Python has a simple syntax that is easy to learn and use.
Interpreted Language: Python code is executed line by line, which makes debugging easier.

PART-C

IV Answer any FOUR questions. Each question carries THREE marks: 4x3=12

28. Write a note on Cache memory.


Cache memory is a small, high-speed storage area located close to the CPU. It stores frequently
accessed data and instructions to speed up processing. By reducing the time needed to access data
from the main memory, cache memory improves overall system performance.

29. How does a microprocessor differ from a micro controller?


Microprocessor: A microprocessor is the central unit of a computer system that performs arithmetic
and logic operations. It requires external components like memory and I/O ports to function.
Microcontroller: A microcontroller is an integrated circuit that includes a microprocessor, memory,
and I/O ports on a single chip. It is designed for specific control applications and is used in embedded
systems.

30. Convert 645(10) to Binary.


To convert the decimal number 645 to binary:
(a) Divide 645 by 2, record the remainder.
(b) Continue dividing the quotient by 2 until you reach 0.
(c) Write down the remainders in reverse order.
(d) The binary equivalent of 645 is 1010000101.

31. What challenges are associated with Big data?


Volume: Handling large amounts of data.
Velocity: Processing data at high speeds.
Variety: Managing different types of data (structured, unstructured).
Veracity: Ensuring data accuracy and reliability.

32. Explain any three characteristics of a good algorithm.


Correctness: Produces the correct output for all valid inputs.
Efficiency: Uses minimal resources (time and space).
Clarity: Easy to understand and implement.
33. Write an algorithm to calculate area and perimeter of rectangle.
Start
Input length and width
Calculate area = length × width
Calculate perimeter = 2 × (length + width)
Output area and perimeter
End

34.Explain if statement with syntax and example.


Syntax:
if condition:
# code to execute if condition is true
Example:
age = 18
if age >= 18:
print("You are an adult.")

PART-D
V Answer any FOUR questions, Each question carries Five marks: 4x5=20

35.Explain the types of data.


 Structured Data: Organized in a fixed format, such as databases and spreadsheets.
 Unstructured Data: Lacks a predefined structure, such as text files, images, and videos.
 Semi-Structured Data: Contains elements of both structured and unstructured data, such as JSON and
XML files.

36.Explain the functional units of a computer with a neat block diagram.

 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.

37.Convert 4D9(16)=( )8 =( )10.


38.Differentiate between cloud computing and grid computing with suitable examples.
Cloud Computing: Provides on-demand access to shared resources over the internet
(e.g., AWS, Google Cloud).
Definition and Trend:
o Cloud computing is an emerging trend in information technology.
o Services are delivered over the Internet (the cloud).
o Users can access these services from anywhere using any device.
Service Components:
o Cloud services include software, hardware (servers), databases, and storage.
o Cloud service providers charge on a pay-per-use basis (similar to electricity usage).
Benefits:
o Accessibility: Users can run applications and process data without needing local storage or
processing power.
o Cost-Effectiveness: Cloud resources are available on-demand at reasonable costs.
Grid Computing: Uses a network of computers to work on a single task, often for scientific research
(e.g., SETI@home).
Grid Network Overview:
o A grid is a computer network that spans geographically dispersed and heterogeneous
computational resources.
o Unlike clouds, which primarily provide services, grids focus on direct resource sharing to solve
large tasks or many small ones together.
Resource Sharing:
o Grids create a sense of a virtual supercomputer by temporarily connecting different nodes
(computers) to solve common goals.
o Users share their resources within the grid network.
Economic Feasibility:
o Grids allow cost-effective reuse or utilization of computational nodes, ranging from handheld
mobile devices to personal computers.

39.Explain the roll of testing and debugging in problem solving.


Testing: The process of evaluating a system or its components to find errors.
Testing
Purpose: To identify defects or errors in the software. It verifies that the software meets the specified
requirements and functions correctly.
Types: Includes unit testing, integration testing, system testing, and acceptance testing.
Process: Involves executing the software with various inputs to uncover bugs, errors, or defects.
Outcome: Helps in identifying issues early in the development process, reducing the cost and effort
required to fix them later.

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

42.Explain different language translators.


Language translators convert high-level programming languages into machine code that a computer can
understand. There are three main types:
 Compiler: Translates the entire program at once and generates an executable file. Errors are reported
after the entire program is checked. Examples include GCC for C/C++.
 Interpreter: Translates and executes the program line by line. It stops when it encounters an error,
making debugging easier. Examples include Python and Ruby interpreters.
 Assembler: Converts assembly language code into machine code. It is used for low-level programming.
Examples include NASM (netwide) and MASM(microsoft Macro).

43.Explain the data types used in Python.

Python has several built-in data types:


 Numeric Types: int (integer), float (floating-point number), and complex (complex numbers).
 Sequence Types: list (mutable sequence), tuple (immutable sequence), and range (sequence of
numbers).
 Text Type: str (string).
 Mapping Type: dict (dictionary).
 Set Types: set (mutable set) and frozenset (immutable set).
 Boolean Type: bool (True or False).
 Binary Types: bytes, bytearray, and memoryview.
 None Type: NoneType (represents the absence of a value).

44.Explain the types of errors with example.


Errors in programming can be categorized into:
 Syntax Errors: Occur when the code violates the syntax rules of the programming language. Example:
print "Hello" instead of print("Hello") in Python.
 Runtime Errors: Occur during program execution. Example: Division by zero (1/0).
 Logical Errors: Occur when the program runs but produces incorrect results. Example: Using + instead
of * in a calculation.
 Semantic Errors: Occur when the meaning of the code is incorrect. Example: Misunderstanding the
problem requirements.
PART-E
VII (ForVisuallyChallengedStudentsonly)

3. Write an algorithm to perform arithmetic operations.


Algorithm to Perform Arithmetic Operations

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

Here’s how you can implement this algorithm in Python:

# Input two numbers


num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))

# Input the operation


operation = input("Enter operation (+, -, *, /): ")

# Perform the operation


if operation == '+':
result = num1 + num2
print("Result:", result)
elif operation == '-':
result = num1 - num2
print("Result:", result)
elif operation == '*':
result = num1 * num2
print("Result:", result)
elif operation == '/':
if num2 != 0:
result = num1 / num2
print("Result:", result)
else:
print("Error: Division by zero is not allowed")
else:
print("Invalid operation")

*************

You might also like