11CS EM PublicQns-1
11CS EM PublicQns-1
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
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
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
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?
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;
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();
};
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 x1x1x1;
}
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...";
};
}
!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.