0% found this document useful (0 votes)
16 views

Hsilige-xi-cs-key-dec-2024

This document provides an unofficial answer key for the First Year Higher Secondary Mid Term Examination in Computer Science for December 2024. It includes answers to various questions related to computer science concepts, programming, and hardware, organized by score value. The document also outlines the structure of the exam, including the number of questions and scoring system.

Uploaded by

caswin899
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)
16 views

Hsilige-xi-cs-key-dec-2024

This document provides an unofficial answer key for the First Year Higher Secondary Mid Term Examination in Computer Science for December 2024. It includes answers to various questions related to computer science concepts, programming, and hardware, organized by score value. The document also outlines the structure of the exam, including the number of questions and scoring system.

Uploaded by

caswin899
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/ 11

Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.

in ®

FIRST YEAR HIGHER SECONDARY MID TERM EXAMINATION DEC 2024


PART III COMPUTER SCIENCE
UNOFFICIAL ANSWER KEY BY HSSLiVE.IN
Qn Sub Answer Key/Value Points Score Total
No Qn
Answer any 5 questions from 1 to 6. Each carries 1 score
1 a) Idempotent Law 1 1
2 c) Source Code 1 1
3 c) ?: 1 1
4 Initialization 1 1
5 Nested If 1 1
6 b) cstdio 1 1
Answer any 9 questions from 7 to 18. Each carries 2 score
7 a) Abacus: Considered as the first computer for basic 1 2
arithmetical calculations. Discovered by the Mesopotamians
around 3000 BC.
b) Pascaline: A computing machine that was capable of
adding and subtracting two numbers directly and that could 1
multiply and divide by repetition. Developed by Blaise
Pascal.
(Any two comparisons required)
8 a) ASCII: American Standard Code for Information 1 2
Interchange. It uses 7 bits to represent a character in
computer memory. It can represent only128 characters.
Another version is ASCII-8 uses 8 bits for each character,
can represent 256 different characters

b) Unicode: Originally used 16 bits which can represent up to


65,536 characters. Nowadays Unicode uses more than 16 1
bits and hence it can represent more characters. Unicode
can represent characters in almost all written languages of
the world.
9 Assuming an 8-bit representation: 1+1 2
1. Convert 34 to binary
001000102
2. Find the 1's complement
To obtain the 1's complement of a binary number, we invert
all the bits 0 becomes 1, and 1 becomes 0.

110111012

10 Keyboard: Allows the user to input text data consisting of 2x1 2


alphabets, numbers and other characters.
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

Mouse: A small handheld device used to position the cursor


or move the pointer on the computer screen by rolling it
over a mouse pad / flat surface.
Light pen: A pointing device shaped like a pen. Has the
advantage of ‘drawing’ directly onto the screen.
Touch screen: Allows the user to operate/make selections by
simply touching on the display screen.
Graphic tablet: Consists of an electronic writing area and a
special ‘pen’ that works with it. Allows artists to create
graphical images with actions similar to traditional drawing
tools.
Joystick: Used to play video games, control training
simulators and robots.
Microphone: Accepts sound in analogue nature as input
and converts it to digital format.
Scanner: Allows capturing of information, like pictures or
text and converting it into a digital format that can be edited
using a computer.
OMR: Scanning device that reads predefined positions and
records where marks are made on the printed form. Useful
for applications such as objective type tests and
questionnaires.
Bar Code Reader: A bar code is a set of vertical lines of
different thicknesses and spacing that represent a number.
Barcode readers are used to input data from such set of
barcodes.
QR (Quick Response) code is similar to barcodes.
Barcodes are single dimensional where as QR codes are two
dimensional. The QR code can be read using a barcode
reader or a mobile with a camera and special software
installed.
Biometric sensor: Identifies unique human physical
features like fingerprints, retina, iris patterns, etc. to
identify, verify and authenticate the identity of the user
Smart card reader: These are used to access data in a smart
card. Smart card is a plastic card that stores and transacts
data. Used in banking, healthcare, telephone calling,
electronic cash payments and other applications.
Digital camera: Takes pictures and videos and converts it
to the digital format. Web camera is a compact and less
expensive version of a digital camera.
(Any two required)
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

11 2x1 2

(Any two comparisons required)


12 Keyword-for 1 2
4x
Literal-72.34, \n 2
Operator-%
13 Integer literals: The tokens constituted only by digits. They 2 x 1 2
are whole numbers without fractional part.
Eg: 13. -76

Floating point literals: Also known as real constants.


These are numbers having fractional parts. These can be
written in one of the two forms –fractional form or
exponential form.
Eg: 4.35, 2.5e6, -5E-3 etc.

Character literal: A single character enclosed in single


quotes.
Eg: ‘a’, ‘9’, ‘+’ etc.

String literal: A sequence of one or more characters


enclosed within a pair of double quotes is called.
Eg: “Hello friends”, “123” etc
(Any two required)
14 a) Variables: The names given to memory locations, by which 2 x 1 2
data in these locations are referenced.

b) Data types: These are the means to identify the nature of


the data and the set of operations that can be performed on
the data.
15 i=0; 2 2
while(i<100)
{
cout<<i;
i++;
}

16 Jump statements: We can change this sequential manner of 1+1 2


the program execution by using jump statements. They
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

perform unconditional branching in a program and they are


return, goto, break, continue

a) goto statement; By using goto, we can transfer the


program control to anywhere in the program without any
condition.

b) break statement : A break statement skips the rest of the


loop and jumps over to the statement following the loop. It
is used with switch and loops.

c) Continue Statement: This is used for skipping over a


part of the code within the loop body and forces next
iteration of the loop. It is used only with loops .

d) return: the return statement terminates the execution of


the current function and transfers control back to the calling
function
(Any two required)
17 An array is a collection of elements of the same type placed 1+1 2
in contiguous memory locations.
Eg: int num[10];
18 a) Arrays can be initialised at the time of declaration. Value 1 2
must be in braces.
Eg. int mark[4] = {36,43,54,20}:

b) Traversal: Accessing each element of an array at least once 1


to perform any operation is known as traversal operation.
Eg. Displaying all the elements of an array
Answer any 9 questions from 19 to 29. Each carries 3 score
19 First-generation computers (1940-1956) used vacuum 1+1+1 3
tubes, had no operating system, and relied on machine
language for programming.

Difference Engine: In 1822, Babbage invented this


machine that could perform arithmetic calculations and
print results automatically.

Turing machine: Alan Turing introduced a machine called


Turing machine. It is a theoretical device that gives symbols
on a long tape according to a table of rules. This tape acts
like the memory in a computer. The tape contains cells ans
can contain a blank or zero or one. The machine can read
and write one cell at a time with the help of a tape head and
move the tape left or right by one cell so that the machine
can read and edit the symbols in the consecutive cells. It is
considered as the first theoretical development towards the
idea of Artificial Intelligence
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

20 3 3

(Any three required)


21 a) OR Gate 1 3
2x1
2

Truth Table
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

b) AND Gate:

Truth Table:

22 E-Waste disposal methods: 3x1 3

(a) Reuse: It refers to second-hand use or usage after the


equipment has been upgraded or modified.

(b) Incineration: It is a controlled and complete


combustion process in which the waste is burned in
specially designed incinerators at a high temperature.

(c) Recycling of e-Waste: It is the process of making or


manufacturing new products from a product that has
originally served its purpose.

(d) Land filling: It is one of the most widely used, but not
recommended methods for disposal of e-Waste.
(Any three required)
23 The advantages are 3x1 3
(a)Better communication
(b)Programmer can easily explain the program logic
(c)Effective analysis (The whole program can be analysed
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

effectively)
(d)Effective synthesis (bigger programs can be subdivided
and its solution can represented in flowcharts separately and
can finally placed together)
(e)Efficient Coding (The flow chart act as a road map
through which the programmer can develop program with
out omission of important steps).
(Any three required)
24 Syntax errors: The errors occur when the rules or syntax of 3 x 1 3
the programming language are not followed. Such program
errors typically involve incorrect punctuation, incorrect
word sequence, undefined term, or illegal use of terms or
constructs.
Logical error: It is due to improper planning of the
program's logic and revealed during the execution of the
program.
Run time error: These errors occur unexpectedly when
computer becomes unable to process some improper data.

25 In C++,Comments are non-executable lines in the code that 1+1+1 3


are used to provide explanations or annotations. They are
ignored by the compiler during program execution.
Single-line comments: Use// to comment a single line.
Multi-line comments: Use/* ... */ for commenting
multiple lines.

26 #include <iostream> 3
using namespace std;
int main()
{ 3
float length, breadth, area, perimeter;
cout << "Enter the length of the rectangle: ";
cin >> length;
cout << "Enter the breadth of the rectangle: ";
cin >> breadth;
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

area = length * breadth;


perimeter = 2 * (length + breadth);
cout << "Area of the rectangle = " << area << endl;
cout << "Perimeter of the rectangle = " << perimeter <<
endl;
return 0;
}

27 a) Bubble sort: Here compare two elements in the two 1


adjacent positions. That is 1st and 2nd, 2nd and 3rd, 3rd and
4th, ..... and exchange them if they are not in the proper
order. Repeat this process ( N-1) times to get the sorted
array. After each pass, the largest, 2nd largest, .... or 3
smallest, 2nd smallest,... will be the end of the array.
Selection sort: Here the array is divided into two parts,
b) 1
sorted part and unsorted part. In order to arrange in
ascending order, first find the smallest element and
exchanged it with the first element. Then find the second
lowest element and exchanged the element in second
position. This process is repeated till the array is sorted.

c) 2D Arrays: A two dimensional array is an array in which 1


each element itself is an array.
The general form is
data_type array_name[rows][columns];
Eg. Int A[m][n];
That is it is a table containing ' m ' rows and ' n ' rows.

28 3

(Any Three Comparisons)


29 get( ): it is used to read a single character. 1+1+1
Syntax is cin.get(variable);
getline( ) : Input function for a string and enter key is the 3
delimiter.
Eg. cin.getline(str, len, ch); where ' str ' is a character array, '
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

len is the maximum number of characters that is to be


stored, ' ch ' is the delimiting character.
put( ) : It is used to display a character.
Eg. cout.put(ch);
write( ): Used to display a string.
Eg. cout.write(str, len); where ' str ' is an array and size ' len
(Any three required)
Answer any 2 questions from 30 to 32. Each carries 5 score
30 a) Operating system (OS): A set of programs that acts as an 2 5
interface between the user and computer hardware.
Function of OS:
Process management, memory management, file
management, device management
Language processors: These are the system programs that
translate programs written in high level language or
assembly language into its equivalent machine language.

b)
Types of language processors:
• Assembler (translates the program code written in
3
assembly language to machine language),
• Interpreter (converts a HLL program into machine
language line by line)
• Compiler (translates a program written in high level
language into machine language).

31 a) Step 1: Start
Step 2: N=1 2
Step 3: Print N
Step 4: N=N+1
Step 5: if(N<=100) then
goto step 3
Step 6: Stop 5
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

b)

32 a) Four elements of a loop:


1. Initialisation: The loop control variable (Variable used in
the condition) gets its first value. The initialisation
statement is executed only once, at the beginning of the
loop. 5
1
2. Test expression: It is a relational or logical expression 4x =2
2
whose value is either True or False. It decides whether the
loop-body will be executed or not. If the test expression
evaluates to True, the loop-body gets executed, otherwise it
will not be executed.
3. Update statement: The update statement modifies the
loop control variable by changing its value. The update
statement is executed before the next iteration.
4. Body of the loop: The statements that need to be
executed repeatedly constitute the body of the loop.
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®

(Only the names are required.)

b)

Key prepared by Hsslive.in.

For suggestions, contact: hsslive.in

You might also like