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

11-CS-Halfyearly-EM-2024-Answer Key

Question papers 2024

Uploaded by

sarfoon
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)
48 views

11-CS-Halfyearly-EM-2024-Answer Key

Question papers 2024

Uploaded by

sarfoon
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/ 7

CHENNAI DISTRICT

Higher Secondary – First year (+1)


Half-Yearly Examination - Dec 2024
COMPUTER SCIENCE
ANSWER KEY
Time allowed: 3 Hrs] [Total Marks: 70
PART – I
Choose the most appropriate answer from the given four alternatives and write the
option code and the corresponding answer. 15 × 1 = 15

QN Answer Mark(s)

1 (C) Power on Self Test 1

2 (D) Zetta 1

Mere
3 (C) decoder (Out of portion - removed from 2023 edition textbook)
attempt

4 (D) Complier Environment 1

5 (A) F2 1

6 (B) abstraction 1

7 (D) u, v = 10, 10 1

8 (C) m = -5, n = 4 1

9 (a) Rick Mascitti 1

10 (D) 11 1

11 (A) int 1

12 (A) \0 1

13 (A) Function Overloading 1

14 (B) Inheritance 1

15 A) Encryption 1

1
Part – II
Answer any SIX of the following: 6 × 2 = 12
Question number 24 is compulsory.

QN Answer Mark(s)
A Computer is an electronic device that takes raw data as input and
processes it under the control of a set of instructions, produces a
result, and saves it for future use.
16 (OR) 2
Computer is an electronic device that processes the input according to the
set of instructions provided to it and gives the desired output at a very fast
rate.
The Program Counter (PC) is a special register in the CPU which always keeps
17 2
the address of the next instruction to be executed.
Multiple applications can execute simultaneously in Windows is known as
18 2
“Multitasking”.

19

(OR)
Any suitable flow chart.
Token: 1
The smallest individual unit in a program is known as a Token or a Lexical
unit
20
Types: 1
• Keywords • Identifiers • Literals • Operators • Punctuators
21 sqrt(64) = 8 2
The purpose of the destructor is to free the resources that the object may 1
have acquired during its lifetime.
22
A destructor function removes the memory of an object which was allocated 1
by the constructor at the time of creating a object.
The ability of the function to process the message or data in more than one
23 2
form is called as function overloading.

24 10 9 8 7 6 2

2
Part – III
Answer any SIX of the following: 6 × 3 = 18
Question number 33 is compulsory.
QN Answer Mark(s)
25 (151)10 = (10010111)2 1
(10010111)2 = (227)8 1
26 1. User Interface
2. File Management Each ½
3. Memory Management (3)
4. Process Management
5. Security Management
6. Fault Tolerance
27
Assignment Operator Equality Operator
3
Operator: = Operator: ==

Simple assignment operator. Relational / Comparative operator.


Used to assign a value to a variable Used to check the equality of the values
on the left-hand side of an assigned on both the sides to the
assignment statement. operator.
Returned the assigned value. Returned a Boolean value.

28 switch(expression)
{ 3
case constant 1: statement(s); break;
case constant 2: statement(s); break;
…………
…………
default: statement(s);
}
(OR)
Suitable syntax
29 An array of strings is a two-dimensional character array.
Example: char colour[4][10]; 3
The size of the first index (rows) denotes the number of strings.
The size of the second index (columns) denotes the maximum length of
each string.
30 Advantages of Public Constructors:
(1) Object Creation Anywhere: 3
Public constructors allow objects to be created in any scope.
Without public constructors, objects cannot be directly instantiated outside the
class.
(2) Flexibility:
Multiple constructors with varying parameters can be declared as public to provide
flexibility in object initialization.
(3) Ease of Dynamic Memory Allocation:
Public constructors enable the creation of objects dynamically.
(4) Encapsulation and Initialization:
Public constructors allow controlled initialization of member variables.
Advantages of Public Destructors:
(1) Automatic Object Cleanup:
Destructors are called automatically when an object goes out of scope or is
explicitly deleted.

3
31 (1) The overloaded function must differ in the number of its arguments or data
types 3
(2) The return type of overloaded functions are not considered for overloading
same data type
(3) The default arguments of overloaded functions are not considered as part of
the parameter list in function overloading.
32 • When an object of the derived class is created, the compiler first calls the base
class constructor and then the constructor of the derived class. 3
• This is because the derived class is built up on the members of the base class.
• When the object of a derived class expires first the derived class destructor is
invoked followed by the base class destructor.
• The constructors are executed in the order of inherited class i.e., from base
constructor to derived. The destructors are executed in the reverse order.
33 30 3
50
40

Part – IV
Answer all questions: 5 × 5 = 25
QN Answer Mark(s)
34
(a) Generations Main Component Features
• Big in size
5
First • Consumed more power
Vacuum Tubes
(1940–1956) • Malfunction
• Machine Language
• Smaller in size
Second • Less Heat
Transistors
(1956-1964) • Consumed less power
• Machine & Assembly language.
Third • Smaller, faster and reliable
(1964-1971) Integrated Circuits • Less power
• High Level Languages
Microprocessor
• Smaller and Faster
Fourth (Very Large Scale
• Microcomputer series developed
(1971-1980) Integrated
Circuits) • Portable Computers were introduced.
• Parallel Processing
Fifth Microprocessor • Super conductors
(1980-Till (Ultra Large Scale • Recognize Images and Graphics
date) Integration) • Artificial Intelligence and Expert Systems
• Solve high complex problems.
• Parallel and Distributed computing
• Smarter, faster and smaller
Sixth
• Development of robotics
(Future)
• Natural Language Processing (NLP)
• Development of Voice Recognition Software

34 (a) 11010102 + 1011012 = 100101112 2½


(b)
(b) 11010112 - 1110102 = 1100012 2½
35 (1) Clock Speed:
(a) 1½
• Every microprocessor has an internal clock that regulates the speed at which
it executes instructions.
• The speed at which the microprocessor executes instructions is called the
clock speed.

4
• Clock speed is measured in MHz (Mega Hertz) or in GHz (Giga Hertz).

(2) Instruction Set


• A command which is given to a computer to perform an operation on data is 2
called an instruction.
• Basic set of machine level instructions that a microprocessor is designed to
execute is called as an instruction set.
• This instruction set carries out the following types of operations:
o Data transfer
o Arithmetic operations
o Logical operations
o Control flow
o Input/output

(3) Word Size


• The number of bits that can be processed by a processor in a single instruction 1½
is called its word size.
• Word size determines the amount of RAM that can be accessed by a
microprocessor at one time and the total number of pins on the
microprocessor.
35 (1) FIFO (First In First Out) Scheduling: 1½
(b) • FIFO algorithm is based on queuing technique
• Technically, the process that enters the queue first is executed first by the CPU,
followed by the next and so on.
• The process are executed in the order of the queue (row).

(2) SJF (Shortest Job First) Scheduling:


• This algorithm works based on the size of the job being executed by the CPU. 1

(3) Round Robin Scheduling


• The Round Robin (RR) scheduling algorithm is designed especially for time
sharing systems. 1½
• Jobs (processes) are assigned and processor time in a circular method.

(4) Based on Priority


• The given job (process) is assigned based on a Priority. 1
• The job which has higher priority is more important than other jobs.

36 (1) Arithmetic Operators: (+, -, *, /, %)


(a) • Arithmetic operators perform simple arithmetic operations like addition, 1½
subtraction, multiplication, division etc.,

(2) Relational Operators: (>, <, >=, <=, ==, !=)


• Relational operators are used to determine the relationship between its 1
operands.

(3) Logical Operators: (&&, ||, !)


• A logical operator is used to evaluate logical and relational expressions. 1
(4) Assignment Operator: (=, +=, -=, *=, /=, %=)
• Assignment operator is used to assign a value to a variable which is on the 1½
left hand side of an assignment statement.
36 (1) Sequence statement:
(b) • The sequential statement are the statements, that are executed one after 1½
another only once from top to bottom.
• Suitable Example:

(2) Selection statement: 2


• The selection statement executed depend upon a condition.

5
• If a condition is true, a true block is executed otherwise a false block is
executed.
• This statement is also called decision statement or selection statement.
• Suitable Example:

(3) Iteration statement:



• A set of statement that are repetitively executed based upon a conditions.
• If a condition evaluates to true, the set of statements (true block) is executed
again and again.
• Suitable Example:
37 (1) Local Scope:
(a) • A variable defined within a block. 1
• The scope of a local variable is the block in which it is defined.
• A local variable cannot be accessed from outside the block of its declaration.

(2) Function Scope:


• The scope of variables declared within a function is extended to the function 1½
block, and all sub-blocks therein.
• The life time of a function scope variable, is the life time of the function block.
• The scope of formal parameters is function scope.

(3) File Scope: 1½


• A variable declared above all blocks and functions (including main ( ) ) has
the scope of a file.
• The life time of a file scope variable is the life time of a program.
• The file scope variable is also called as global variable.

(4) Class Scope: 1


• A class is a new way of creating and implementing a user defined data type.
• Classes provide a method for packing together data of different types.
• Data members are the data variables that represent the features or properties
of a class.
37 Advantages:
(b) (1) Re-usability:
• “Write once and use it multiple times” you can achieve this by using class. 3

(2) Redundancy:
• Inheritance is the good feature for data redundancy. If you need a same
functionality in multiple class you can write a common class for the same
functionality and inherit that class to sub class.
(3) Easy Maintenance:
• It is easy to maintain and modify existing code as new objects can be created
with small differences to existing ones.
(4) Security:
• Using data hiding and abstraction only necessary data will be provided thus
maintains the security of data.

Disadvantages: 2
(1) Size:
• Object Oriented Programs are much larger than other programs.

(2) Effort:
• Object Oriented Programs require a lot of work to create.

6
(3) Speed:
• Object Oriented Programs are slower than other programs, because of their
size.
38
(a) Constructor Destructor
The name of the constructor must be The destructor has the same name 5
same as that of the class. as that class prefixed by the tilde
character ‘~’.
No return type can be specified for It has no return type.
constructor.
A constructor can have parameter list. The destructor cannot have
arguments.
The constructor function can be Destructors cannot be overloaded.
overloaded.
They cannot be inherited but a They cannot be inherited.
derived class can call the base class
constructor.
The compiler generates a constructor, In the absence of user defined
in the absence of a user defined destructor, it is generated by the
constructor. compiler.
The constructor is executed The destructor is executed
automatically when the object is automatically when the control
created. reaches the end of class scope to
destroy the object.

38 (1) Single Inheritance:


(b) • When a derived class inherits only from one base class, it is known as single
inheritance Each 1
(5)
(2) Multiple Inheritance:
• When a derived class inherits from multiple base classes it is known as
multiple inheritance
(3) Hierarchical inheritance:
• When more than one derived classes are created from a single base class, it
is known as Hierarchical inheritance.
(4) Multilevel Inheritance:
• The transitive nature of inheritance is reflected by this form of inheritance.
• When a class is derived from a class which is a derived class – then it is
referred to as multilevel inheritance.
(5) Hybrid inheritance:
• When there is a combination of more than one type of inheritance, it is
known as hybrid inheritance.

-o O o-

You might also like