0% found this document useful (0 votes)
46 views8 pages

I Pu Midterm Model Paper 1 - Answers

Uploaded by

lolakshir455
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views8 pages

I Pu Midterm Model Paper 1 - Answers

Uploaded by

lolakshir455
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

The National PU College

Jayanagar, Bengaluru – 560070


I PUC Midterm Examination 2024 – 25
Subject : Computer Science (41)
Time: 03h Maximum Marks: 70
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 x 1 = 20
I Select the correct answer from the choices given.
1. Which of the following is not an operating system?
a. Windows b. Linux c. Android d. Photoshop

2. 1GB=?
a. 1024 TB b. 1000MB c. 1024 MB d. 1024 KB

3. Which of the following is input device?


a. printer b. keyboard c. monitor d. speaker

4. A) ASCII is a encoding scheme developed in 1960s for standardising the keyboard character
representation.
B) ISCII is a encoding scheme developed to support all the characters of every written language of
the world.
a. Both A and B are correct b. Only A is correct
c. Only B is correct d. Both A and B are wrong

5. What is the binary equivalent of the decimal number 128?


a. 11000000 b. 10000001 c. 10001100 d. 10000000

6. What does UTF stand for?


a. Unicode Transformation Format b. Unicode Text Format
c. Uniform Text Format d. Universal Text Format

7. Which technology allows devices to communicate over the internet?


a. Big Data b. Virtual Reality
c. Artificial Intelligence d. Internet of Things

8. The component which is essential for a robot to interact with its environment is
a. Database b. Sensor c. VR headset d. Software

9. What is Natural Language Processing (NLP) used for?


a. Interpreting computer languages b. Translating text to speech and vice versa
c. Managing databases d. Enhancing video graphics

10. What is the first step in problem-solving as per the document?


a. Testing the solution b. Coding the algorithm
c. Analysing the problem d. Debugging the program
11. What does the process of coding involve?
a. Writing an algorithm b. Testing the program
c. Converting the algorithm into a program d. Debugging the code

12. Assertion (A ): Pseudo code cannot be executed directly by the computer.


Reason (R ): Pseudo code is another way of representing algorithm in non-formal language,
intended for human reading.
a) A is false and R is false b) A is true and R is the correct explanation
c) A is true and R is false d) A is true and R is not the correct explanation

13. Which symbol is used for comments in Python?


a. // b. # c. @ d. &

14. Identify the reason for the error in the following program segment
a=10
b=20
c=a+b
d=”welcome
print (“sum is”, c)
a. Key word is used as identifier b. String not closed properly
c. Semicolon missing d. Logical error

15. What will be the output of the following code?


print ((4 + 3) / 2)
a. 5.5 b. 6.0 c. 3.5 d. 9.0

II Fill in the blanks choosing the appropriate word/words from those given in the brackets.
(Encoding, Unicode, object, machine learning, secondary, oval)

16. Secondary memory is used for permanent storage of data.


17. The mechanism of converting data into an equivalent cipher using specific code is called as
Encoding.
18. Machine Learning is a subsystem of artificial intelligence wherein computers have the ability to
learn from data.
19. The symbol used for input and output operation in flow chart is oval.
20. In python every value or data item is considered as object.

PART-B

III Answer any FOUR questions. Each question carries TWO marks: 4x2=8

21. What is proprietary software? Give an example.


When software to be used has to be purchased from the vendor who has the copyright of the
software such software is called proprietary software.
Example : Microsoft Windows, Microsoft Office, Tally, Quickheal etc.

22. Write a note on abacus


Computing is attributed to the invention of ABACUS almost 3000 years ago. It was a mechanical
device capable of doing simple arithmetic calculations only.
23. Mention the radix of binary number system and decimal number system.
The radix of binary number system is 2.
The decimal number system is 10.

24. What is artificial intelligence? Name any one tool that uses artificial intelligence for its working.
Artificial Intelligence aims to simulate the natural intelligence of human beings into machines,
thus making them behave intelligently.
Tools / Applications of artificial intelligence:
1. Real time traffic analysis in maps.
2. Automatic tagging in social networking.
3. Digital personal assistants like Siri, Alexa, Google now , Cortana are all powered by AI.

25. Write a pseudo code to add two numbers.


Input N1, N2
Output N1+N2
OR
Input N1, N2
Sum = N1 + N2
Output Sum

26. Explain any two symbols used in flow chart.


Flowchart symbol Function Description
Also called “Terminator” symbol. It indicates where the flow
Start/End
starts and ends.
Also called “Action Symbol,” it represents a process, action,
Process
or a single step.
A decision or branching point, usually a yes/no or true/false
Decision question is asked, and based on the answer, the path gets
split into two branches.
Input / Output Also called data symbol, is used to input or output data

Arrow Connector to show order of flow between shapes

.
27. Write the syntax and example of print ( ) function.
print(value[,sep=’ ’],end=’\n’)
where sep is a separator between the output values. The default separator is space.
end is used to specify any string to be appended after the last value. The default is a new
line.
Example:
print(“Hello”,”World”,”India”) or print(“Hello”,World”,”India”,sep=”@”)
Output: Hello World India or Hello@World@India
PART-C

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

28. Define a) data bus b) address bus c) control bus


(a) Data bus is used to transfer data between different components
(b) Address bus is used to transfer addresses between CPU and main memory.
(c) Control bus is used to communicate control signals between different components of a
computer.
All these three buses collectively make the system bus.

29. What is micro controller? Write neat labelled diagram to show structure of microcontroller.
Microcontroller is a small computing device which has a CPU, a fixed amount of RAM, ROM and
other peripherals embedded on a single chip.

30. Explain hexa decimal number system with its applications.


Hexadecimal numbers are also used for compact representation of binary numbers. It consists of
16 unique symbols (0 – 9, A–F), and is called base- 16 system. In hexadecimal system, each
alphanumeric digit is represented as a group of 4 binary digits because 4 bits (24=16) are
sufficient to represent 16 alphanumeric symbols.
Applications:
 Hexadecimal numbers are used for describing the colours on the webpage.
 To simplify the address representation, hexadecimal numbers is used.

31. What is immersive experience? Explain any one method to achieve immersive experience.
Immersive experiences allow us to visualise, feel and react by stimulating our senses.
Immersive experience can be achieved using virtual reality and augmented reality.

Virtual Reality (VR)


Virtual Reality is a three-dimensional, computer-generated situation that simulates the real
world. The user can interact with and explore that environment by getting immersed in it while
interacting with the objects and other actions of the user. It is achieved with the help of VR
Headsets. In order to make the experience of VR more realistic, it promotes other sensory
information like sound, smell, motion, temperature, etc.
OR
Augmented Reality (AR)
The superimposition of computer generated perceptual information over the existing physical
surroundings is called as Augmented Reality (AR). It adds components of the digital world to the
physical world, along with the associated tactile and other sensory requirements, thereby
making the environment interactive and digitally manipulable. Users can access information
about the nearest places with reference to their current location. They can get information about
places and choose on the basis of user reviews.
32. Write a flow chart to calculate area of rectangle.

Start

Input Length, Breadth

Area = Length * Breadth

Output Area

Start

33. What is problem solving? Mention the steps involved in problem solving.
Problem solving is the process of identifying a problem, developing an algorithm for the
identified problem and finally implementing the algorithm to develop a computer program.
The steps involved in problem solving are:
 Analysing the problem
 Developing an Algorithm
 Coding
 Testing and Debugging

34. What is explicit type conversion? Explain any two explicit type conversion functions in python.
When the programmer specifies for the interpreter to convert a data type to another type such
type of conversion is called explicit type conversion.
OR
Explicit conversion, also called type casting happens when data type conversion takes place
because the programmer forced it in the program.

Explicit type conversion functions in python are:


Function Description
int(x) Converts x to an integer
float(x) Converts x to a floating-point number
str(x) Converts x to a string representation
chr(x) Converts ASCII value of x to character
ord(x) Returns the character associated with the ASCII code x

PART-D

V Answer any FOUR questions, Each question carries Five marks: 4 x 5 = 20

35. Explain Von Neumann architecture for computer with neat labelled diagram.
The Von Neumann architecture is shown in Figure 1.5. It
consists of a Central Processing Unit (CPU) for processing
arithmetic and logical instructions, a memory to store
data and programs, input and output devices and
communication channels to send or receive the output
data. Electronic Numerical Integrator and Computer
(ENIAC) is the first binary programmable computer based
on Von Neumann architecture.
36. Define data. Explain structured data in detail.
Data is a collection of raw facts and figures which is used for processing.
Structured Data
Data which follows a strict record structure and is easy to comprehend is called structured data.
Such data with pre-specified tabular format may be stored in a data file to access in the future.
In structured data, the data is organised in row/column format and is easily understandable.
Structured data may be sorted in ascending or descending order.
Example of Structured data: Monthly attendance records of students, sales transactions, online
railway ticket bookings, ATM transactions, etc.

37. What is operating system? Explain graphical user interface of operating system.
The operating system is system software that operates the computer. It is the most basic system
software, without which other software cannot work. It manages other application programs and
provides access and security to the users of the system. Some of the popular operating systems
are Windows, Linux, Macintosh, Ubuntu, Fedora, Android, iOS, etc.
Graphical User Interface
Graphical User Interface (GUI) lets users run programs or give instructions to the computer in the
form of icons, menus and other visual options. Icons usually represent files and programs stored
on the computer and windows represent running programs that the user has launched through
the operating system. The input devices used to interact with the GUI commonly include the
mouse and the keyboard.
The operating systems with GUI interfaces include Microsoft Windows, Ubuntu, Fedora and
Macintosh, among others.

38. Define robotics. Explain robots with example.


A robot is a machine capable of carrying out one or more tasks automatically with accuracy and
precision. A robot is programmable by a computer, which means it can follow the instructions
given through computer programs. Sensors are one of the prime components of a robot.
Robot can be of many types, such as wheeled robots, legged robots, manipulators and
humanoids.
Robots are being used in industries, medical science, bionics, scientific research, military, etc.
*Wheeled robots: NASA’s Mars Exploration Rover (MER) mission is a robotic space mission to
study about the planet Mars.
*Humanoids: Sophia is a humanoid that uses artificial intelligence, visual data processing, facial
recognition and also imitates human gestures and facial expressions.
*Drone: A drone is an unmanned aircraft which can be remotely controlled

39. What is algorithm? Explain the characteristics of good algorithm.


Algorithm is a set of exact steps which when followed, solve the problem or accomplish the
required task.
Characteristics of a good algorithm
• Precision — the steps are precisely stated or defined.
• Uniqueness — results of each step are uniquely defined and only depend on the input and the
result of the preceding steps.
• Finiteness — the algorithm always stops after a finite number of steps.
• Input — the algorithm receives some input.
• Output — the algorithm produces some output.
40. Explain relational operators in Python.
Relational operator compares the values of the operands on its either side and determines the
relationship among them.
Operat Example : Let num1=10
Operation Description
or num2=20
If the values of two operands are equal,
>>> num1 == num2
== Equals to then the condition is True, otherwise it is
False
False
Not equal If values of two operands are not equal, >>> num1 != num2
!=
to then condition is True, otherwise it is False True
If the value of the left-side operand is
Greater greater than the value of the right side >>> num2 > num1
>
than operand, then condition is True, otherwise True
it is False.
If the value of the left-side operand is less
>>> num1 < num2
< Less than than the value of the right side operand,
True
then condition is True, otherwise it is False
If the value of the left-side operand is
Greater
greater than or equal to the value of the >>> num2 >= num1
>= than or
right-side operand, then condition is True, False
equal to
otherwise it is False
Less than If the value of the left operand is less than >>> num1 <= num2
<= or equal or equal to the value of the right operand, True
to then is True otherwise it is False

41. What is mapping data type in python? Explain dictionary data type with example.
Mapping is an unordered data type in Python.
Dictionary in Python holds data items in key-value pairs. Items in a dictionary are enclosed in
curly brackets { }. Dictionaries permit faster access to data. Every key is separated from its value
using a colon (:) sign. The key : value pairs of a dictionary can be accessed using the key. The keys
are usually strings and their values can be any data type. In order to access any value in the
dictionary, we have to specify its key in square brackets [ ].
Example 5.8
#create a dictionary
>>> dict1 = {'Fruit':'Apple',
‘Climate':'Cold', 'Price(kg)':120}
>>> print(dict1)
{'Fruit': 'Apple', 'Climate': 'Cold',
'Price(kg)': 120}
>>> print(dict1['Price(kg)'])
120

VI Answer any TWO questions, each question carries FIVE marks 2 x 5 = 10

42. Convert (a) 257(8) to decimal number system


2 5 7
82 81 80
= 2 × 82 + 5 × 81 + 7 × 80
= 128 + 40 + 7
Therefore, 257(8) = 175(10)
(b) 10101100(2) to octal number system.
010 101 100
2 5 4
Therefore, (10101100)2 = 254(8)

43. Write a python program to perform addition, subtraction, multiplication, division operation on
two numbers and display all results.

Num1=input(int(“Enter the first number”))


Num2=input(int(“Enter the second number”))
Sum = Num1+Num2
Sub = Num1-Num2
Mul = Num1*Num2
Div = Num1/Num2
print(“Sum of 2 numbers=”,Sum)
print(“Difference of 2 numbers=”,Sub)
print(“Product of 2 numbers=”,Mul)
print(“Division of 2 numbers=”,Div)

44. What is debugging? Explain any two types of errors with suitable example.
The process of identifying and removing mistakes (bugs or errors) from a program is called as
debugging.

Syntax Error: Syntax errors are mistakes in the source code, such as spelling and punctuation
errors, incorrect labels, and so on, which cause an error message to be generated by the
compiler.
Example :- print(“Hello”) is syntactically correct where as print(“Hello” is incorrect because of
missing parenthesis.

Runtime Error: Runtime error occurs when your syntax is correct but the compiler (or interpreter
in case of Python), is still not able to run the code due to an error.
Example :- a = 5 b = 0 c = a / b. If you run the above code, you will get this error.

Logical Error:- A logical error (also called semantic errors ) occurs in Python when the code runs
without any syntax or runtime errors but produces incorrect results due to flawed logic in the
code.
Example :- if we wish to find the average of two numbers 10 and 12 and we write the code as 10
+ 12/2, it would run successfully and produce the result 16. Surely, 16 is not the average of 10
and 12. The correct code to find the average should have been (10 + 12)/2 to give the correct
output as 11.

You might also like