Hsilige-xi-cs-key-dec-2024
Hsilige-xi-cs-key-dec-2024
in ®
110111012
11 2x1 2
20 3 3
Truth Table
Join Now: https://join.hsslive.in Downloaded from https://www.hsslive.in ®
b) AND Gate:
Truth Table:
(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.
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 ®
28 3
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)
b)