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

11CS EM PublicQns-1

The document is a compilation of past public examination questions on computer science from March 2019 to June 2023. It contains 46 multiple choice questions related to various topics in computer science including programming concepts in C++, operating systems, computer hardware, algorithms, data structures, computer networks and computer ethics. The questions are one mark questions and the answers for each question is provided after the question.
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)
166 views

11CS EM PublicQns-1

The document is a compilation of past public examination questions on computer science from March 2019 to June 2023. It contains 46 multiple choice questions related to various topics in computer science including programming concepts in C++, operating systems, computer hardware, algorithms, data structures, computer networks and computer ethics. The questions are one mark questions and the answers for each question is provided after the question.
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/ 30

என்றும் மாணவர்கள் நலனில்

11
COMPUTER SCIENCE
PUBLIC EXAMINATION QUESTIONS
(from March 2019 to June 2023)

Compiled by
Mrs. G. Kiruba, M.Sc., M.Phil., B.Ed.,
PG Computer Instructor Grade-1
GHSS, Jallipatti
Udumalpet
&

A. Prabhakar- 9442979144

PUBLIC ONE MARK QUESTIONS

March – 2019
1. Which gate circuit is an OR gate followed by an inverted?
(a) NOR (b) XNOR (c) AND (d) OR
2. Which is used to connect a monitor or any display device like LCD projector to a computer?
(a) SCSI port (b) VGA connector (c) USB port (d) PS/2 port
3. Identify the in-built email software in Ubuntu:
(a) Internet Explorer (b) Chrome (c) Thunderbird (d) Firefox
4. Which is specified by the properties of the given input and the relation between the input and the
desired output?
(a) algorithm (b) definition (c) specification (d) statement
5. If C1 is false and C2 is true, which compound statement will be executed?
1 if Cl
2 S1
3 else
4 if C2
5 S2
6 else
7 S3
(a) S3 (b) S1 & S2 (c) S1 (d) S2
6. A loop invariant need not be true:
(a) at the end of each iteration (b) at the start of the algorithm
(c) at the start of the loop (d) at the start of each iteration
..1.. அ. பிரபாகர் - 9442979144
11 – Computer Science
7. Assume a = 5, b = 6; what will be the result of a & b?
(a) 1 (b) 0 (c) 4 (d) 5
8. for(int i=1; i <= 10; i++)
How many times will the loop be executed?
(a) 9 (b) 11 (c) 0 (d) 10
9. Which function is used to check whether a character is alphanumeric or not?
(a) isalnum() (b) islower() (c) isalpha() (d) isdigit()
10. Which of the following is the scope resolution operator?
(a) % (b) : (c) > (d) &
11. cin >>n[4]; to which element does the statement accept the value?
(a) 4 (b) 2 (c) 5 (d) 3
12. A structure declaration is given below:
struct Time
{
int hours;
int minutes,
int seconds;
}t;
Using the above declaration, which of the following refers to the structure variable seconds?
(a) seconds (b) t.seconds (c) Time.seconds (d) Time::seconds
13. The member function defined within the class behave like:
(a) Outline function (b) Data function
(c) Inline function (d) Non-inline function
14. Which of the following derives a class student from the base class school?
(a) student : public school (b) class school: public student
(c) school student (d) class student: public school
15. A computer network security that monitors and controls incoming and outgoing traffic is:
(a) firewall (b) worms (c) cookies (d) virus

16. Which generation of computer used Transistors?


(a) First (b) Second (c) Third (d) Fourth
17. Pick the RISC processor:
(a) Intel P6 (b) Intel 386 & 486 (c) Pentium II (d) Motorola 68000
18. Which of the following operating systems support Mobile Devices?
(a) Windows 7 (b) BOSS (c) Linux (d) iOS
19. Ignoring or hiding unnecessary details and modeling an entity only by its essential properties is
known as:
(a) Specification (b) Abstraction (c) Composition (d) Decomposition
20. How many times the loop is iterated?
i:=0
while i ≠ 5
i:=i+1
(a) 4 (b) 0 (c) 6 (d) 5
21. The unchanging property of a variable in iteration is known as:
(a) Recursion (b) Loop invariant (c) Assignment (d) Condition
22. Which of the following operator is received from operator of C++?
(a) >> (b)<< (c) && (d)<>
..2.. A. Prabhakar - 9442979144
11 – Computer Science
23. Which can be used as alternate to \n?
(a) \t (b) \a (c) endl (d) \o
24. Which function begins the program execution?
(a) start() (b) stop() (c) begin() (d) main()
25. Array subscripts is always starts with which number?
(a) -1 (b) 2 (c) 0 (d) 3
26. Which keyword is used to create structures in C++?
(a) struct (b) structure (c) void (d) const
27. Which of the following is a technique of building new classes from an existing class?
(a) Inheritance (b) Abstraction
(c) Encapsulation (d) Polymorphism
28. How will you invoke the function dispchar() for the following input?
To print $ for 10 times.
void dispchar(char ch='$', int size=10)
{
for (int i=1;i<=size;i++)
cout<<ch;
}
(a) dispchar(ch, size); (b) dispchar($, 10);
(c) dispchar(); (d) dispchar('$'; 10 times);
29. Which among the following is executed in the order of inheritance?
(a) Member function (b) Constructor (c) Destructor (d) Object
30. Which of the following is not a malicious program on Computer Systems?
(a) Worms (b) Trojans (c) Spyware (d) Cookies

31. Identify the output device.


(a) Mouse (b) Keyboard (c) Memory (d) Monitor
32. Which gate is called as the logical inverter?
(a) XNOR (b) AND (c) OR (d) NOT
33. How many level of securities is provided by operating system to the user?
(a) 3 (b) 2 (c) 5 (d) 4
34. In Windows applications which is the default folder to save files?
(a) My Computer (b) My document
(c) My pictures (d) Documents and setting
35. After the assignment what values will be stored in the variables m, n?
(1) m, n := 10, 5
(2) m, n := m + 3, n – 2
(3) m, n :=?,?
(a) 3, 13 (b) 10, 13 (c) 13, 3 (d) 10, 5
36. How many times the loop is iterated?
m := 0
while (m<5)
m := m + 1
(a) 10 (b) 4 (c) 5 (d) 6
37. The smallest individual unit in a program is:
(a) Tokens (b) Pseudocode (c) Algorithm (d) Flowchart
38. Which of the following statement is uses to terminate the execution of the loop?
(a) while (b) goto (c) break (d) continue
..3.. A. Prabhakar - 9442979144
11 – Computer Science
39. In C++ which function is used to check whether a character is alphanumeric or not?
(a) islower() (b) isalpha() (c) isdigit() (d) isalnum()
40. int age[] =| 6 ,80, 75, 21, 10];
How many elements are there in this array?
(a) 4 (b) 2 (c) 5 (d) 6
41. Which of the following is a user defined data type?
(a) char (b) class (c) float (d) int
42. Which of the following constructor is executed for the following prototype?
add display (add &a);
(a) copy constructor (b) default constructor
(c) parameterized constructor (d) non-parameterized constructor
43. In C++ which of the following operator can be overloaded?
(a)?: (b) + (c) sizeof (d) ::
44. Which amongst the following is executed in the order of inheritance?
(a) composition (b) destructor (c) abstraction (d) constructor
45. Which of the following deals with procedures, practices and values?
(a) computer ethics (b) piracy (c) programs (d) virus

46. Expand POST :


(a) Post On Self Test (b) Power On Software Test
(c) Power On Self Test (d) Power On Self Text
47. Which amongst this is not an octal number?
(a) 645 (b) 234 (c) 876 (d) 123
48. Which of the following is a very high speed and expensive memory?
(a) Cache (b) ROM (c) RAM (d) EPROM
49. Which of the following operating systems support mobile devices?
(a) Windows 7 (b) LINUX (c) UNIX (d) iOS
50. Which is specified by the properties of the given input and the relation between the input and the
desired output?
(a) specification (b) statement (c) algorithm (d) definition
51. Which of the following notation is a mix of programming language, like constructs and plain English?
(a) Flow chart (b) Pseudo-code (c) Algorithm (d) Structure
52. Who developed C++?
(a) Charles Babbage (b) Sundar Pichai
(c) Bill Gates (d) Bjarne Stroustrup
53. Which is not a jump statement in C++?
(a) break (b) goto (c) switch (d) continue
54. Which of the following header file defines the standard I/O predefined functions?
(a) stdio.h (b) math.h (c) string.h (d) ctype.h
55. Which of the following keyword is used to declare a structure in C++?
(a) structure (b) struct (c) for (d) do
56. Which of the following supports the transitive nature of data?
(a) Inheritance (b) Encapsulation (c) Polymorphism (d) Abstraction
57. How many number of destructors can a class in C++ contain?
(a) 4 (b) 3 (c) 2 (d) 1
58. Which of the following is the process of creating new classes from an existing class?
(a) Polymorphism (b) Inheritance (c) Encapsulation (d) Super class

..4.. A. Prabhakar - 9442979144


11 – Computer Science
59. Which one of the following are self-repeating and do not require a computer program to attach
themselves?
(a) Worms (b) Viruses (c) Spyware (d) Trojans
60. Which of the following is the first Tamil programming Language?
(a) Kamban (b) Azhagi (c) Tamil Open Office (d) Ezhil

61. Expand ULSI.


(a) Ultra Large Scale Information (b) Ultra Low Scale Integration
(c) Ultra Low Software Integration (d) Ultra Large Scale Integration
62. Which of the following is a CISC processor?
(a) Pentium III (b) Intel P6 (c) Pentium IV (d) AMD K6
63. Stating the input property and input-output relation of a problem is known as:
(a) algorithm (b) specification (c) definition (d) statements
64. Diagrammatic notation for representing algorithms are known as:
(a) Control flow (b) Pseudocode (c) Flow chart (d) Syntax
65. Before assignment x, y=40, 20,
After assignment x, y := x+5, y-5
What is the value of x, y?
(a) 45, 15 (b) 45, 25 (c) 20, 30 (d) 35, 25
66. Which of the following data types is not a fundamental type?
(a) float (b) signed (c) char (d) int
67. A loop that contains another loop inside its body.
(a) Inline Loop (b) Nested Loop (c) Outer Loop (d) Inner Loop
68. What is the return data type of the function prototype add(int, int);?
(a) char (b) float (c) double (d) int
69. By default, a string ends with which character?
(a) \n (b) \o (c) \b (d) \t
70. The mechanism by which the data and functions are bound together into a single unit is known as:
(a) Polymorphism (b) Inheritance (c) Abstraction (d) Encapsulation
71. The data variables declared inside the classes are known as:
(a) method members (b) data members (c) member functions (d) inline members
72. Which of the following refers to function having more than one distinct meaning?
(a) Operator overloading (b) Function overloading
(c) Operations overloading (d) Member overloading
73. The type of inheritance that reflects the transitive nature is :
(a) Multilevel Inheritance (b) Single Inheritance
(c) Hybrid Inheritance (d) Multiple Inheritance
74. Which of the following deals with procedure, practice and value?
(a) Virus (b) Piracy (c) Computer ethics (d) Programs
75. Getting government services through internet is known as:
(a) e-commerce (b) e-book (c) e-library (d) e-Governance

76. Which generation of computer used IC's?


(a) Third (b) First (c) Fourth (d) Second
77. For 11012 the Hexadecimal equivalent is:
(a) F (b) D (c) B (d) E
78. Which of the following is not a part of the microprocessor unit?
(a) Cache Memory (b) ALU (c) Register (d) Control Unit

..5.. A. Prabhakar - 9442979144


11 – Computer Science
79. Which of the following is single user operating system?
(a) Linux (b) MS-DOS (c) UNIX (d) Windows
80. Which command is used to Paste'?
(a) Edit → Paste (b) View → Paste
(c) File → Paste (d) All of the above
81. if C1 is false and €2 is true, the compound statement will be executed?
1 if Cl
2 S1
3 else
4 if C2
5 S2
6 else
7 S3
(a) S2 (b) S3 (c) S1 (d) None
82. Who developed C++?
(a) Bill Gates (b) Charles Babbage
(c) Bjarne Stroustrup (d) Sundar Pichai
83. How many categories of data types are available in C++?
(a) 3 (b) 5 (c) 2 (d) 4
84. How many times the following loop will be executed?
for(int i=1; i<10; i++)
(a) 11 (b) 9 (c) 0 (d) 10
85. int x = 10;
int main()
{
int x = 100;
cout<<::x;
}
The output for the above snippet is
(a) 100 (b) x (c) ::x (d) 10
86. Which of the following in the collection of variables of the same type that are referenced by a
common name?
(a) array (b) int (c) class (d) float
87. “Write once and use it multiple time” can be achieved by:
(a) Modification (b) Redundancy (c) Composition (d) Reusability
88. The functions that perform specific tasks in a class is called
(a) Inline functions (b) Data members (c) Member functions (d) Online functions
89. Which of the following deals with procedures, practices and values?
(a) Virus (b) Computer ethics (c) Piracy (d) Programs
90. Which is not a search engine?
(a) Android (b) Bing (c) Yahoo (d) Google

91. _____ is the main component of Second Generation computers.


(a) Vacuum tubes (b) Transistors (c) Integrated circuits (d) Microprocessors
92. How many bytes does 1 kilobyte contain?
(a) 1000 (b) 8 (c) 4 (d) 1024
93. Which is the fastest memory?
(a) Hard disc (b) Main memory (c) Cache memory (d) Blue-ray disc
..6.. A. Prabhakar - 9442979144
11 – Computer Science
94. Operating system is a _____
(a) Application software (b) Hardware (c) System software (d) Component
95. The shortcut key used to rename file in windows :
(a) F2 (b) F4 (c) F5 (d) F6
96. Which of the following operator is extraction operator in C++?
(a) >> (b) << (c) <> (d) ۸۸
97. Which of the following is a valid string literal?
(a) 'A' (b) 'Welcome' (c) 1232 (d) "1232"
98. The multi way branch statement:
(a) if (b) if...else (c) Switch (d) for
99. Which of the following is the exit control loop?
(a) for (b) while (c) do...while (d) if...else
100. Which function begins the program execution?
(a) isalpha() (b) isdigit() (c) main() (d) islower()
int age[] = {6, 90, 12, 18, 2);
101. How many elements are there in this array?
(a) 2 (b) 5 (c) 6 (d) 4
102. How many access specifiers declared inside class definition?
(a) 3 (b) 2 (c) 4 (d) 1
103. How many types are there in inheritance?
(a) 5 (b) 4 (c) 3 (d) 2
104. Which one of the following is Harass through online?
(a) Cyber terrorism (b) Scam (c) Cyber stalking (d) Fraud
105. class product
{
int code, quantity;
float price;
};
int main()
{
product p1, p2;
return 0;
}
How many bytes will be allocated with memory space of object pl?
(a) 4 bytes (b) 8 bytes (c) 12 bytes (d) 2 bytes
2023
106. Name the Volatile memory.
(a) RAM (b) ROM (c) EPROM (d) PROM
107. For 10102 the Hexadecimal equivalent is:
(a) C (b) B (c) E (d) A
108. Display devices are connected to the computer through:
(a) SCSI Port (b) USB Port (c) VGA Connector (d) PS / 2 Port
109. File Management manages :
(a) Folders (b) Directory systems (c) Files (d) All of the above
110. Which of the following key combination is used to permanently delete a file or folder without
sending to Recycle bin?
(a) Shift and delete (b) Alt and delete (c) Tab and delete (d) Ctrl and delete

..7.. A. Prabhakar - 9442979144


11 – Computer Science
111. Stating the input property and the input-output relation in a problem is known as:
(a) algorithm (b) specification (c) definition (d) statement
112. This can be used as alternate to endl Command:
(a) \o (b) \t (c) \n (d) \b
113. #include<iostream>
using namespace std;
int main()
{
int i, sum = 5;
for( i = 1 ; i <= 5 i++)
{
sum = sum + i;
}
cout<<sum;
return 0;
}
The output of the above snippet is :
(a) 20 (b) 10 (c) 25 (d) 15
114. Which function begins the Program execution?
(a) main() (b) isalpha() (c) islower() (d) isdigit()
115. What will happen when the structure is declared?
(a) It will be declared and initialized (b) It will not allocate any memory
(c) It will be only declared (d) It will allocate the memory
116. The term used to describe a programming approach based on classes and objects is:
(a) ADT (b) OOP (c) SOP (d) POP
117. The member function defined within the class behaves like :
(a) Outline functions (b) Inline functions
(c) Data functions (d) Non inline functions
118. Which of the following is not true with respect to function overloading?
(a) The default arguments of overloaded functions are not considered for overloading.
(b) The overloaded functions must differ in their Signature.
(c) Destructor function cannot be overloaded.
(d) The return type is also considered for overloading a function.
119. Which among the following is executed in the order of Inheritance?
(a) Constructor (b) Destructor (c) Object (d) Member function
120. Commercial programs made available to the public illegally are known as:
(a) free software (b) freeware (c) software (d) warez

121. Which shortcut key is used to cut a file or folder?


(a) Ctrl + Alt + C (b) Ctrl + Alt + X (c) Ctrl + C (d) Ctrl + X
122. 2^40 is referred as:
(a) Kilo (b) Tera (c) Peta (d) Zetta
123. What is the smallest size of data represented in a CD?
(a) Blocks (b) Sectors (c) Pits (d) Tracks
124. Operating system provides how many levels of securities to the user?
(a) 2 (b) 3 (c) 4 (d) 1
125. Which is volatile memory?
(a) ROM (b) PROM (c) RAM (d) EPROM

..8.. A. Prabhakar - 9442979144


11 – Computer Science
126. Using the following recursive definition
1 𝑖𝑓 𝑛 = 0
𝑎𝑛 = {
𝑎 𝑥 𝑎𝑛−1 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
How many multiplications are needed to calculate a10?
(a) 11 (b) 10 (c) 9 (d) 8
127. Which of the following operator is extraction operator in C++?
(a) >> (b) << (c) <> (d) ۸۸
128. How many times the following loop will execute? for (int i=0; i<5; i++)
(a) 0 (b) 5 (c) 4 (d) 6
129. If two strings are equal, then strcmp() function returns which value?
(a) 0 (b) -1 (c) +1 (d) =
130. By default, a string ends with which character?
(a) \o (b) \t (c) \n (d) \b
131. A constructor that accepts no parameter is called as:
(a) parameterized constructor (b) copy constructor
(c) default constructor (d) non-parameterized constructor
132. Which is the first Tamil programming language?
(a) Thamizpori (b) Ezhil (c) Kamban (d) Vani
133. Distributing unwanted e-mail to others is called:
(a) scam (b) spam (c) fraud (d) spoofing
134. Inheritance is a process of creating new class from:
(a) Base class (b) Abstract (c) Derived class (d) Function
135. Which of the following is the identifiable entity with some characteristics and behaviour?
(a) Class (b) Object (c) Structure (d) Member

..9.. A. Prabhakar - 9442979144


PUBLIC TWO MARK QUESTIONS

March – 2019
1. Write short note on Impact printer.
2. What is a program counter?
3. What is a multi-user operating system?
4. Initially j is 20 and p is 4, then what will be the value of p = p  ++j;?
5. What is Harvesting?
6. Write the syntax to declare two-dimensional array and write a suitable example.
7. What are the disadvantages of OOP?
8. What are called class members?
9. Write a while loop that displays numbers 5, 10, 15, ....50

10. What are derived gates?


11. What is GUI?
12. What is Open Source?
13. What are the important control flow statements?
14. What are keywords? Can keywords be used as identifiers?
15. What is Parameter and list its types.
16. How many elements are there in the following array declaration and also write its memory
allocation.
char ch[15];
17. What is Polymorphism?
18. Write down the importance of Destructor.

19. What are the functions of an ALU?


20. Convert the given binary number (11.011)2 into its decimal equivalent.
21. What is recursion?
22. Write a note on break and continue statement in C++.
23. Write the syntax and example of, if statement.
24. What are the importance of void data type?
25. What is polymorphism?
26. What is TSCII?
27. If a = 65, b= 15, then find
(i) a&b
(ii) a^b

28. What are the components of a CPU?


29. What is HDMI?
30. What are the security management levels available in operating system?
31. What is iteration?
32. What is meant by type conversion?
33. Write about strlen() function in C++.
34. What is a class in C++?
35. What is a cookie?

..10.. அ. பிரபாகர் - 9442979144


11 – கணினி அறிவியல்
36. for (int m=1; m<=9; m+=2) cout<<m;
(i) How many times the loop will be executed?
(ii) Write the output of the above snippet.

37. What is a computer?


38. Find 2's complement of (-57)10
39. What are the different operating systems used in computer?
40. How will you Rename a File?
41. Mention three important control flow statements.
42. Write a short note on 'const' Keyword with an example.
43. Write a 'for' loop that displays the number from 21 to 30.
44. How to access array elements?
45. What is cyber crime? Give an example.

46. Name some of the popular operating systems used in personal computers and Mobile devices.
47. Convert (44)10 into Binary number.
48. What are called Standard Icons?
49. Define Algorithms.
50. What is the syntax to declare two-dimensional array?
51. What is Function Overloading?
52. Why derived class is called Power Packed Class?
53. What is TSCII?
54. What are the importance of void data type?

55. What is a computer?


56. Write a short note on Hexadecimal Number System.
57. Convert (46)10 into Binary Number.
58. Define software and mention its types.
59. Differentiate files and folders.
60. What is the difference between an algorithm and a program?
61. Write about the Input/Output operators in C++.
62. What is harvesting?
63. What is an Instruction Set?

64. Write the functions of Control unit.


65. Perform Binary addition for the following:
1510 +2010
66. What is GUI?1
67. What is meant by a token? Name the token available in C++.
68. Define a loop invariant.
69. What is Polymorphism?
70. What is Inheritance?
71. Write short note on cracking.
72. Write the Output for the following:
#include<iostream>
using namespace std;

..11.. A. Prabhakar - 9442979144


11 – Computer Science
int main()
{
double var1=87.25255;
cout<<(float)var1<<endl;
cout<<(int)var1<<endl;
}

73. List the encoding systems that represent characters in memory.


74. What is a program counter?
75. What is an invariant?
76. Write about strlen() function.
77. What are Warez?
78. What is abstraction?
79. What are called Standard icons?
80. Define class.
81. Convert the following if-else statement into conditional statement.
if (marks >= 60)
Grade = ‘A’;
else
Grade = ‘B’

..12.. A. Prabhakar - 9442979144


PUBLIC THREE MARK QUESTIONS

March – 2019
1. Write the truth table and draw logic symbol of XOR gate.
2. Write short notes for the following:
(a) Network Indicator
(b) Session Indicator
3. What are the values of variables m and n after the assignments in line (1) and line (3)?
(1) m, n := 4, 10
(2) --m, n =?,?
(3) m, n := m + 5, n-2
(4) --m, n =?,?
4. What is type conversion? Write short note on implicit type conversion.
5. Write the syntax and purpose of switch statement.
6. What is called nested structure? Give example.
7. Define Encapsulation.
8. What are the points to be noted while deriving a new class?
9. Read the following C++ snippet and answer the questions given below:
class student
{
int m, n;
public:
void add():
float calc();
}x1, x2;

10. Convert 34010 to its equivalent Binary, Octal and Hexadecimal.


11. Differentiate CD and DVD.
12. Write the specific use of Cortana.
13. Define flow chart, pseudo code and a programming language.
14. What is Operator Overloading? List the operators which cannot be overloaded.
15. What is the difference between isupper() and toupper() functions?
16. List some of the features of modular programming.
17. What are the ways to define member functions of a class? Give example.
18. Write a C++ program to print the following series.
1 3 5 7 ... 75
March – 2020
19. Write the truth table of fundamental gates.
20. Differentiate CD and DVD.
21. Write note on recycle bin.
22. What is decomposition?
23. Write short note on: (i) Keywords (ii) Identifiers
24. Write note on strcmp() function in C++.
25. What is an array? What are its types?
26. Write about three types of visibility mode.

..13.. அ. பிரபாகர் - 9442979144


11 – Computer Science
27. Read the following C++ code and answer the questions given below:
#include<iomanip>
#include<iostream>
using namespace std;
class product
{
int code, quantity;
float price;
public:
void assigndata();
void print();
};
int main()
{
product pl, p2;
cout<<”\n Memory allocation for object p1”<<sizeof(p1);
cout<<”\n Memory allocation for object p2”<<sizeof(p2);
return 0;
}
(i) What is name of the class in the above program?
(ii) What are the data members of the class?
(iii) What is the memory size of the objects p1, p2?

28. (a) State whether the following numbers are valid or not, if invalid write reason.
(i) (796)8 (ii) (7GE)16 (iii) (11110)2
(b) Write the number system for the following numbers.
(i) (926)10 (ii) (ABC)16 (iii) (450)8
29. Write a note on interfaces and ports available in computer.
30. Write a note on following process management algorithms.
(a) FIFO (b) Shortest Job First
31. What is a flow chart? Write the disadvantages of flow chart?
32. Write a note ci: logical operators in C++.
33. List the rules for function overloading in C++.
34. List some of the features of Modular Programming.
35. What are the guidelines of ethics to be followed by computer users?
36. Read the following C++ snippet and answer the questions given below.
class personal
{
int admno, rno;
protected:
char name[20];
public:
personal();
void pentry();
void pdisplay();
};

..14.. A. Prabhakar - 9442979144


11 – கணினி அறிவியல்
class marks: private personal
{
int m;
protected:
char grade[5];
public:
marks();
void mentry();
void mdisplay();
};
class result: public marks
{
float total, agg;
char remark[5];
result();
void rcalculate();
void rdisplay();
};
(a) Which type of inheritance is shown in the above snippet?
(b) Write the visibility mode of class marks and result.
(c) Name the base classes and derived classes in the above snippet.

37. What is the difference between copy and move?


38. List the building blocks of Algorithms.
39. Why is 'main' function special?
40. What are Modifiers? What is the use of Modifiers?
41. Write about memory representation of 2-D array.
42. Write the disadvantages of OOP.
43. Mention different ways of defining methods of a class.
44. Name the operators which cannot be overloaded.
45. What is Derived class? Why derived class is called power packed class?

46. Explain about classification of Microprocessors based on the Data Width.


47. Write the characteristics of sixth generation computers.
48. What is Case-analysis?
49. What are Keywords? Can keywords be used as identifiers?
50. What is a null statement and compound statement?
51. Write the syntax and the purposes of switch statement.
52. Write a note on User-defined functions.
53. What are ethical issues? Last some of them.
54. Write a C++ program to sum the numbers from 1 to 10 using for loop.

..15.. A. Prabhakar - 9442979144


11 – Computer Science

55. What is radix of a number system? Give examples.


56. Explain the types of RAM.
57. What are the functions of windows operating system?
58. Write the procedure to create a file in wordpad.
59. Write a note on logical operators.
60. Write a C++ program to print multiplication table of a given number using for-loop.
61. Write a note on local scope.
62. What is an Array of strings?
63. What is meant by Computer Ethics?

64. What are the characteristics of a Computer?


65. Write down the classifications of microprocessors based on the instruction set.
66. Write the two ways to create a new folder.
67. What are the advantages and disadvantages of Time-sharing operating system?
68. Write about strcmp() function.
69. Write short notes on Class access Specifiers of C++.
70. Write about encryption and decryption.
71. Write a short note on Tamil Virtual Academy.
72. Write a C++ program to display numbers from 1 to 10. Except 5 using 'for' and 'continue' statement.

73. Differentiate break and continue statement.


74. Write a note on Recycle bin.
75. What do you mean by Overriding?
76. List out the key features of operating system.
77. What is called anonymous structure? Give an example.
78. Differentiate Cold booting and Warm booting.
79. Write a note on binary number system.
80. List out the features of procedural programming.
81. Convert the following Octal numbers into Binary numbers.
(i) 6137 (ii) 245 (iii) 472

..16.. A. Prabhakar - 9442979144


11 – Computer Science
PUBLIC FIVE MARK QUESTIONS

March – 2019
1. (a) Explain the basic components of a computer with a neat diagram.
OR
(b) Convert the following:
(i) (1920)10 = ( )8
(ii) (1920)10 = ( )2
(iii) (8BC)16 = ( )2
(iv) (6213)8 = ( )2
(v) (255)10 = ( )16
2. (a) Explain the concept of Distributed Operating System.
OR
(b) Trace the step-by-step execution of the algorithm for factorial(3).
factorial(n)
--inputs: n is an integer, n >= 0
--outputs: f = n!
f, i = 1, 1
while I <= n
f, i := f x i, i + 1
3. (a) Assume a = 15, b = 20; what will be the result of the following operations?
(a) a & b (b) a | b (c) a ^ b (d) a >> 3 (e) (~b)
OR
(b) Explain call by value method using function in C++ with suitable example.
4. (a) Explain briefly the basic concepts of OOP.
OR
(b) Write the output for the following program
#include<iostream> void disp num()
using namespace std; {
class nest int sq = square_num();
{ int cu = cube_num();
int x1; cout<<”\nThe square of “<<x1<<”
int square_num() is “<<sq;
{ cout<<”\nThe cube of “<<x1<<” is
return x1*x1; “<<cu;
} }
public: };
void input_num() int main()
{ {
cout<<"\nEnter the number"; nest n1;
cin>>x1; n1.input_num();
} n1.disp_num();
int cube_nurn() return 0;
{ }
return x1x1x1;
}

5. (a) What are the restrictions on operator overloading?


OR

..17.. A. Prabhakar - 9442979144


11 – Computer Science

(b) Debug the following program to get the output


Output
Enter data
Name: Raman
Code: 1305
Experience: 25
Display data
Name: Raman
Code: 1305
Experience : 25years
Program
#include<iostream> void staff::getdata()
#include<string> {
Class Employee Employee::getdata();
{ cout<<“Experience :”;
private cin>>exp;
Char name[20]; int code; }
public: void staff::Display()
void getdata(); {
void display(): Employee::display();
}; cout<<“Experience :”<<ex<<“
Class staff:public Employee years”<<endl;
{ }
int ex void main()
public: {
void get(); staff s;
void display(); cout<<“Enter data”<<endl;
}; S.getdata()
Void Employee::display(); cout<<“Display data”<<endl;
{ s.display();
cout<<”Name: “<<name; return 0;
cout<<”Code: “<<code; };
}
void Employee::getdata()
{
cout<<“Name: “; gets(name);
cout<<“Code:”;
cin>>code;
}
June – 2019
6. (a) Discuss the various generations of Computers.
OR
(b) Explain the characteristics of a Microprocessor.
7. (a) Explain the advantages and disadvantages of Open Source Operating System.
OR
(b) Explain the types of errors.
8. (a) What is an entry control loop? Explain any one of the entry control loop with its syntax and
suitable example.
OR
(b) Write a C++ program to find the difference between two matrix.
..18.. A. Prabhakar - 9442979144
11 – Computer Science
9. (a) Explain the different types of inheritance.
OR
(b) Write the different types of cyber attacks.
10. (a) Write the differences between Object Oriented Programming and Procedural Programming.
OR
(b) Write the output for the following program.
#include<iostream>
using namespace std;
class simple
{
private:
int a,b;
public:
simple()
{
a=0;
b=0;
cout<<"\nConstructor of class simple";
}
~simple()
{
cout<<"\nDestructor is executed";
}
void getdata()
{
cout<<"\nEnter the values for a and b";
cin>>a>>b;
}
void putdata()
{
cout<<"\nThe two integers are"<<a<<"\t'<<b<<endl;
cout<<"\nThe sum of the variables"<<a+b;
}
};
int main()
{
simple s;
s.getdata();
s.putdata();
return 0;
}

..19.. A. Prabhakar - 9442979144


11 – Computer Science
March – 2020
11. (a) Discuss the various generations of computers.
OR
(b) Write the uses of operating system.
12. (a) Explain the types of errors in C++.
OR
(b) What is an entry controlled loop? Explain any one of the entry controlled loop with syntax and
suitable example.
13. (a) What are the key differences between if - else and switch statements in C++?
OR
(b) Explain scope rules of variables in C++ with example.
14. (a) (i) What is structure? What is its use?
(ii) Write the syntax and an example for creating a structure.
(iii) How to access members of a structure? Give example.
OR
(b) Write the output for the following C++ program.
Assume the values for age as 23, height as 161.5 and weight as 45.
#include <iostream>
using namespace std;
struct Student
{
int age;
float height, weight;
}obj;
int main()
{
cout<<”\nEnter the age:”;
cin>>obj.age;
cout<<"\nEnter the height:";
cin>>obj.height;
cout<<"\nEnter the weight:”;
cin>>cbj.wright;
cout<<”\nYour details:";
cout<<"\nAge:”<<obj.age;
cout<<"\tWeight:"<<obj.weight;
return 0;
}
15. (a) (i) Explain the main features of OOPS.
(ii) What are the advantages of OOPS.
OR
(b) Debug the given C++ program to get the following output:
Output
Sum Constructor:
Difference Constructor:
1. Add:
2. Difference:
Enter your choice :2
Enter the values for a and b :20 60

..20.. A. Prabhakar - 9442979144


11 – Computer Science
The difference of two numbers are: -40
Difference Destructor:
Sum Destructor:
Program
?include<iostream>
using namespace std
class sum
{
int a, s;
protected:
int b;
publicly:
void sum()
{
a = b = s = 0;
cout<<”\nSum Constructor:”;
}
void input();
{
cout<<"\nEnter the values for a and b :";
cin>>a>>b;
}
void addition()
{
s = a+b;
cout<<"\nThe sum of two numbers is:”<<s;
}
void minus()
{
return a-b;
}
+sum()
{
cout<<"\nSum Destructor:";
}};
class difference # public sum
{
int d1;
public:
difference()
{
d=0;
cout<<"\nDifference Constructor:”;
}
vid sub()
{
input();
d=minuses();

..21.. A. Prabhakar - 9442979144


11 – Computer Science
cout<<"\nThe difference of two numbers are:"<<d;
}
~difference()
{
cout<<"\nDifference Destructor:";
}
};
int main[]
{
difference obj;
int ch=0;
cout<<"\n1. Add:\n\nDifference:";
cout<<"\n\nEnter your choice:";
cin>>ch;
switch(ch);
{
case “1”:
obj.input();
obj.addition();
break;
case 2:
obj.sub();
break;
}
return 0;
};
SEPTEMBER - 2020
16. (a) (i) Convert (98.46)10 to binary
(ii) Find the 2's complement of (-46)10
(iii) Add (1101010)2 + (101101)2
(iv) Subtract (1101011)2 - (111010)2
(v) Convert (145)8 to binary
OR
(b) Explain the parts of a window in Windows Operating System.
17. (a) (i) What are tokens in C++?
(ii) Explain the types of tokens in C++ with suitable example.
OR
(b) Write a C++ program to find the sum of the series given below.
S=1+x+x²+....+ xn
18. (a) Explain the for loop in C++ with its syntax and a suitable example.
OR
(b) Explain call by value method with suitable example.
19. (a) (i) Write a note on the main features of object oriented programming.
(ii) Explain the advantages and disadvantages of Object Oriented Programming.
OR
(b) Write the output for the following C++ program.
#include<iostream>
using namespace std;
..22.. A. Prabhakar - 9442979144
11 – Computer Science
class Trial
{
int x;
public:
void assign(int y)
{
x=y;
}
void test(Trial obj1, Trial obj2)
{
obj1.x=10;
obj2.x=20;
cout<<"\nValue of Object1 :"<<obj1.x;
cout<<"\nValue of Object2 :"<<obj2.x;
}
void display() adasala
int main()
{
Trial a1,a2,a3;
a2.assign(45);
a1.assign(54);
cout<<"\nValue of first assignment :";
a2.display();
cout<<"\nValue of second assignment:";
a1.display();
cout<<"\nValue of first assignment after passing the values :";
a3.test(a1,a2);
cout<<"\nValue of second assignment after passing the values :";
a2.display();
a1.display();
return 0;
}
20. (a) Explain the different visibility mode in C++ with a suitable example.
OR
(b) Debug the given C++ program to get the following output:
Output
The width of the box is :20 The length of the box is :67
Program
#include <stream>
using namespace std:
classes Box
{
double width;
public::
double length;
int printWidth()
{
cout<<"\nThe width of the box is:"<<<<width;

..23.. A. Prabhakar - 9442979144


11 – Computer Science
cout<<"\nThe length of the box is :"<<length;
}
void setWidth(double w,l);
}
void Box?:setWidth(double w,double I)
{
width=w;
length=l;
}
int MAIN()
{
Box obj;
b.setWidth(67.0,20.0);
b.print Width();
exit 0;
}
SEPTEMBER - 2021
21. (a) What are the rules for operator overloading?
OR
(b) (i) Convert (923)10 into Octal and Hexadecimal.
(ii) Convert (99.76)10 into Binary.
22. (a) Explain the types of Microprocessors.
OR
(b) What are the types of Errors?
23. (a) What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give
example for each of them.
OR
(b) What is a 'switch' statement and mention the rules for switch statement.
24. (a) Answer the following:
(i) Define functions.
(ii) What is default argument? Give example.
OR
(b) Debug the given C++ program to get the following Output :
Output
Blue
Red
Orange
Yellow
Program
$include <stdio.h>
using namespace;
int main[ ]
{
float colour [4] [10]={"Blue", "Red", "Orange",}
for(int i=0; i<4; i++);
cout<<colour[j]<<"\t";
}
}
..24.. A. Prabhakar - 9442979144
11 – Computer Science
25. (a) Discuss the various generations of computers.
OR
(b) Write the output for the following.
#include <iostream>
using namespace std;
class student //base class
{
private:
char name[20];
int rno;
public:
void acceptname()
{
cout<<"\n Enter roll no and name.."; cin>>rno>>name;
}
void displayname()
{
cout<<"\n Roll no :-"<<rno;
cout<<"\n Name :-"<<name<<endl;
}
};
class exam: public student //derived class with single base class
{
public:
int mark1, mark2, mark3;
void acceptmark()
{
cout<<"\n Enter 3 subject marks..";
cin>>mark1>>mark2>>mark3;
}
void displaymark()
{
cout<<"\n\t\t Marks Obtained";
cout<<"\n Subject1..." <<mark1;
cout<<"\n Subject2..." <<mark2;
cout<<"\n Subject3..."<<mark3;
}
};
class result: public exam
{
int total;
public:
void showresult()
{
total=mark1+mark2+mark3;
cout<<"\nTOTAL MARK SCORED : "<<total;
}
};

..25.. A. Prabhakar - 9442979144


11 – Computer Science
int main()
{
result r1;
r1.acceptname(); //calling base class function using derived class object
rl.acceptmark(); //calling base class function which itself is a derived
//class function using its derived class object
r1.displayname(); //calling base class function using derived class object
r1.displaymark(); /*calling base class function which itself is a derived
class function using its derived class object*/
r1.showresult(); //calling the child class function
return 0;
}
MAY - 2022
26. (a) Explain Data and Information.
OR
(b) Explain the types of ROM.
27. (a) Explain the versions of windows operating system.
OR
(b) Write the specification of an algorithm for computing the square root of a number.
28. (a) Explain the types of errors.
OR
(b) Explain multi-way branch statement (switch) with a suitable example.
29. (a) Explain the parts of a Loop.
OR
(b) Find the output of following program.
#include<iostream>
using namespace std;
int main()
{
int num[10], even = 0, odd = 0;
for(int i=0; i<10; i++)
{
cout<<"\n Enter Number"<<i+1<<”=”;
cin>>num[i];
if(num[i]%2==0)
++even;
else ++odd;
}
cout<<"\n There are"<<even<<"Even Numbers";
cout<<"\n There are”<<odd<<"Odd Numbers";
}
30. (a) Debug the following C++ program:
Output:
----------
15
14
13
----------
..26.. A. Prabhakar - 9442979144
11 – Computer Science
Program:
%include(iostream.h)
#include<conio.h>
Class A
{
public;
int a1,a2:a3;
Void getdata[ ]
{
a1 = 15;
a2 = 13; a3 = 13;
}
}
Class B :: public A()
{
PUBLIC
voidfunc()
{
int b1:b2:b3;
A::getdata[ ];
b1 =a1 ;
b2 =a2;
b3=a3;
cout<<b1<<'\t'<<b2<<’t\’<<b3;
}
void main()
{
clrscr()
B der;
der1:func();
getch();
}

OR
(b) Explain the advantages of object oriented programming.
July - 2022
31. (a) Explain the various generation of computers.
OR
(b) Explain 1's compliment representation with an example.
32. (a) Explain the characteristics of a microprocessor.
OR
(b) Explain if...else statement with a suitable example.
33. (a) Explain the different types of inheritance.
OR
(b) Explain case analysis with an example.
34. Explain the use of header file with examples.
OR
(b) What is an entry control loop? Explain any one of the entry controlled loop with suitable
example.
..27.. A. Prabhakar - 9442979144
11 – Computer Science
35. (a) Explain call by value method with suitable example.
OR
(b) What are the rules for operator overloading?
March - 2023
36. (a) Discuss the various Generations of Computers.
OR
(b) Explain the process management algorithms in Operating System.
37. (a) (i) Write the procedure to convert fractional decimal to binary.
(ii) Convert (98.46)10 to Binary.
OR
(b) Arrange the memory devices in ascending order based on the access time.
38. (a) Explain about Binary Operators used in C++.
OR
(b) Explain Call by value method with example.
39. (a) Mention the difference between constructor and destructor
OR
(b) Write the output of the following program:
#include<iostream>
using namespace std;
int main()
{
char dev[5] [10] = {"Monitor", "Speaker", "Printer", "Scanner", "Keyboard"};
for(int i = 0 ; i<5 ; i++)
cout<< dev[i] <<”\n” ;
}
40. (a) Explain the different types of Cyber attacks.
OR
(b) Debug the following C++ program.
Output:
Constructor of base class...
Constructor of derived...
Constructor of derived1...
Destructor of derived1...
Destructor of derived...
Destructor of base class...
Program:
$include<iostream>
using namespace std;
class base()
{
Public
base()
{
cout<<"\n Constructor of base class...";
}
!base()
{
cout<<"\n Destructor of base class...";
};
}

..28.. A. Prabhakar - 9442979144


11 – Computer Science
Class derived :: public base
{
public
derived()
{
cout<<"\n Constructor of derived...";
}

!derived()
{
cout<<"\n Destructor of derived...";
}
};
Class derived1: public derived
{
public:
derived 1();
{
cout<<"\n Constructor of derived1...";
}
derived 1();
{
cout <<"\n Destructor of derived 1...";
}
}
int main():
{
derived1 x;
return 0;
}
June - 2023
41. (a) Explain the basic components of a computer with a neat diagram.
OR
(b) List out the uses of operating system.
42. (a) Explain the characteristics of a Microprocessor.
OR
(b) (i) Add : 11010102 +1011012
(ii) Subtract : 11010112 -1110102
43. (a) Explain control statements with suitable example.
OR
(b) Explain the main features of Object Oriented Programming.
44. (a) Explain the different visibility mode through pictorial representation.
OR
(b) (i) What are the rules for function overloading?
(ii) State the rules for Operator overloading.

45. (a) (i) What is Parameter and list its types.


(ii) Write a short note on pow() function in C++.
..29.. A. Prabhakar - 9442979144
11 – Computer Science
OR
(b) Debug the following C ++ program:
Program:
%include(istream)
using namespace Std
int main []
{
int n, num, digit, rcv = 0
Cout >> "Enter a positive number:";
Cin >>num ;
n = num :
while (num)
{
digit =num%0
rev=(rev*10)+ digit ;
num = num / 10
}
Cout <<" The reverse of the number is : <<rev <<endl;
if (n== rev ) ;
Cout <<" The number is a palindrome;
else:
Cout >> The number is not a palindrome":
return 0;
}
}
Output 1:
Enter a positive number: 1221
The reverse of the number is: 1221
The number is a palindrome.
Output 2:
Enter a positive number: 1234
The reverse of the number is: 4321
The number is not a palindrome.

..30.. A. Prabhakar - 9442979144

You might also like