I Pu Midterm Model Paper 1 - Answers
I Pu Midterm Model Paper 1 - Answers
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
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
8. The component which is essential for a robot to interact with its environment is
a. Database b. Sensor c. VR headset d. Software
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
II Fill in the blanks choosing the appropriate word/words from those given in the brackets.
(Encoding, Unicode, object, machine learning, secondary, oval)
PART-B
III Answer any FOUR questions. Each question carries TWO marks: 4x2=8
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.
.
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
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.
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.
Start
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.
PART-D
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.
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
43. Write a python program to perform addition, subtraction, multiplication, division operation on
two numbers and display all results.
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.