XI Computer Science Public questions
[Link] a while loop that displays numbers 5,10,15,…….50(M-19)
[Link] a c++ program to print the following series 1 3 5 7………75(jun-2019)
3. for(m=1;m<=9;m+=2)
cout<<m; (sep-2020)
(i)How many times the loop will be executed? Ans:9 times
(ii)Write the output of the above snippet Ans: 1 3 5 7 9
[Link] a c++ program to sum the numbers from 1 to 10 using for loop(May-2022)
[Link] a c++ program to display numbers from 1to 10 .Except 5 using ‘for’ and continue
statement(March-2022)
[Link] the following if-else statement into conditional statement.(June-2023)
if(marks>=60)
Grade=’A’;
else
Grade=’B’;
[Link] are the values of variables m and n after the assignments in line(1) and line(3)(March 2019)
(1)m,n:=4,10
(2) --m,n=??
(3) m,n:=m+5,n-2
(4) ) --m,n=??
[Link] the following c++ snippet and answer the questions given below:(March-2019)
class student
{int m,n;
public:
void add();
float calc();
}x1,x2;
(i)Identify the members of the class. (ii)What is size of the objects x1,x2 in memory?
[Link] the output for the following:(Mar-2023)
#include<iostream>
using namespace std;
int main()
{double var1=87.25255;
cout<<(float)var1<<endl;
cout<<(int)var1<<endl;
}
10. Read the following c++ code and answer the questions given below:(March-2020)
#include<iomanip>
#include<iostream>
using namespace std;
class product
{int code,quantity;
float price;
public:
void assigndata();
void print();
};
int main()
{
cout<<”\n memory allocation for object p1”<<size of(p1);
cout<<”\n memory allocation for object p2”<<size of(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;
[Link] j is 20 and p is 4,then what will be the value of p =p*++j;? (March-2019)
[Link] 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();
}
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
13. Write a c++ program to find factorial of number
14. Write a c++ program to print Fibonacci series
15. print
A 54321
AB 5432
ABC 543
ABCD 54
ABCDE 5
CHAPTER 1 TO 18 PUBLIC ONE WORD QUESTION WITH ANSWERS
[MARCH-2019 TO JULY 2024]
(Chapter-1) (Introduction to Computers)
1. Name the volatile memory--- [M-2023, J-2023]
(a) ROM (b) PROM (c) RAM (d) EPROM
2. Identify the output device [M-2020]
(a) Keyboard (b) Memory (c) Monitor (d) Mouse
3. Expand POST [S-2020, J-2024]
(a) Post on self-test (b) Power on Software Test
(c) Power on Self-Test (d) Power on Self Text
4. Which generation of computer used IC’s? [M-2022, M-2024]
(a) First (b) Second (c) Third (d) Fourth
5. Which generation of computer used transistors? [J-2019]
(a) First (b) Second (c) Third (d) Fourth
6. ___ is the main component of second generation computers. [AUG-2022]
(a) Vacuum tubes (b) Transistors (c) IC (d) Microprocessors
(CHapter-2 PART-1) (Number Systems)
1. Which refers to the number of bits processed by a computer’s CPU? [M-2024]
(a) Byte (b) Nibble (c) Word length (d) Bit
2. How many bytes does 1 Kilo Byte contain? [AUG-2022, J-2024]
(a) 1000 (b) 8 (c) 4 (d) 1024
3. For 11012 what is the Hexadecimal equivalent? [M-2022]
(a) F (b) E (c) D (d) B
4. Which amongst this is not an octal number? [S-2020]
(a) 645 (b) 234 (c) 876 (d) 123
5. For 10102 the hexadecimal equivalent is: [M-2023]
(a) C (b) B (c) E (d) A
6. 2^40 is referred as [J-2023]
(a) Kilo (b) Tera (c) Peta (d) Zetta
(CHapter-2 PART-2) (Boolean algebra)
1. Which is a basic electronic circuit which operates on one or more signals?
(a) Boolean algebra (b) Gate (c) Fundamental gates (d) Derived gates
2. Which gate is called as the logical inverter? [M-2020]
(a) AND (b) OR (c) NOT (d) XNOR
3. A + A =?
(a) A (b) O (c) 1 (d) A
4. NOR is a combination of?
(a) NOT (OR) (b) NOT (AND) (c) NOT (NOT) (d) NOT (NOR)
5. NAND is called as …… Gate
(a) Fundamental Gate (b) Derived Gate (c) Logical Gate (d) Universal Gate
6. Which gate circuits is an OR gate followed by an inverted? [M-2019]
(a) NOR (b) XNOR (c) AND (d) OR
(CHapter-3) (Computer Organization)
1. Which of the following is not the part of a microprocessor unit? [M-2022, J-2024]
(a) ALU (b) Control unit (c) Cache memory (d) register
2. Which of the following is a CISC processor? [M-2024]
(a) Intel P6 (b) AMD K6 (c) Pentium III (d) Pentium IV
3. Which is the fastest memory? [AUG-2022]
(a) Hard disk (b) Main memory (c) Cache memory (d) Blue-Ray disc
4. What is the smallest size of data represented in a CD? [J-2023]
(a) Blocks (b) sectors (c) pits (d) tracks
5. Display devices are connected to the computer through. [M-2019, M-2023]
(a) USB port (b) Ps/2 port (c) SCSI port (d) VGA connector
6. Which is used to connect a monitor or any display device like LCD projector to a
computer? [M-2019]
(a) SCSI port (b VGA connector (c) USB port (d) PS/2 port
7. Pick the RISC processor: [J-2019]
(a) Intel P6 (b) Intel 386&486 (c) Pentium II (d) Motorola 680
Which of the following is a very high speed and expensive memory? [S-2020]
(a) Cache (b) ROM (c) RAM (d) EPROM
(CHapter-4) (Theoretical concepts of Operating System)
1. Operating system is a ------- [AUG-2022]
(a) Application Software (b) Hardware ` (c) System Software (d) Component
2. Which of the following Operating systems support Mobile Devices? [J-2019, S-
2020]
(a) Windows 7 (b) Linux (c) BOSS (d) iOS
3. File Management manages… [M-2023]
(a) Files (b) Folders (c) Directory systems (d) All the Above
4. Interactive Operating System provides----- [M-2024]
(a) Graphics User Interface (GUI) (b) Data Distribution
(c) Security Management (d) Real Time Processing
5. An example for single task operating system is [M-2022]
(a) Linux (b) Windows (c) MS-DOS (d) UNIX
6. The File management system used by Linux is [J-2024]
(a) ext2 (b) NTFS (c) FAT (d) NFTS
7. How many Level of securities is provided by operating system to the user? [M-
2020, J-2023]
(a) 3 (b) 2 (c) 5 (d) 4
(CHapter-5) (Working with typical operating systems)
1. Which is the default folder for many Windows Applications to save your file? [M-
2020, J-2024]
(a) My Document (b) My Pictures (c) Documents and Settings (d) My Computer
2. The shortcut key used to rename a file in windows----- [AUG-2022, M-2024]
(a) F2 (b) F4 (c) F5 (d) F6
3. Which of the following key combination is used to permanently delete a file or
folder without sending to recycle bin? [M-2023]
(a) Shift and delete (b) Alt and delete (c) Tab and delete (d) Ctrl and delete
4. Which command is used to ‘paste’? [M-2022]
(a) Edit→ Paste (b) view → Paste (c) File → Paste (d) All the above
5. Which shortcut key is used to cut a file or folder? [J-2023]
(a) Ctrl+Alt+C (b) Ctrl+Alt+X (c) Ctrl+C (d) Ctrl+X
(CHapter-6) (Specification and Abstraction)
1. Omitting details inessential to the task and representing only the essential
features of the task is known as – [M-2024]
(a) Specification (b) abstraction (c) composition (d) decomposition
2. Stating the input property and the as : output relation a problem is known [M-
2019, M-2023]
(a) Specification (b) statement (c) algorithm (d) definition
3. Ignoring or hiding unnecessary details and modelling an entity only by its
essential properties is known as --- [J-2019]
(a) Specification (b) Abstraction (c) Composition (d) Decomposition
4. Which is specified by the properties of the given input and the relation between
the input and the desired output. [S-2020]
(a) Specification (b) Statement (c) algorithm (d) Definition
(CHapter-7) (Composition and Decomposition)
1. If C1 is false and C2 is true, the compound statement if C1 S1 else if C25 S2 6 else
7 S3 executes—
(a) S1 (b) S2 (c) S3 (d) none [M-2019, M-2022]
2. How many times the loop is iterated? i := 0 while i ≠ 5 i := i + 1 [J-2019, M-2024, J-
2024]
(a) 4 (b) 5 (c) 6 (d) 0
3. 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 [M-2020]
4. Which of the following notation is a mix of programming language like
constraints and plain English?
(a) Flow chart (b) Pseudo-code (c) Algorithm (d) Structure [S-2020]
5. How many times the loop is iterated ---- M: =0 While (m<5) M:=m+1 [M-2020] (a)
10 (b) 4 (c) 5 (d) 6
(CHapter-8) (Iteration and recursion)
1. A loop invariant need not be true [M-2019]
(a) at the start of the loop . (b) at the start of each iteration
(c) at the end of each iteration (d) at the start of the algorithm
2. Using this recursive definition an = 1 if n = 0 axan-1 otherwise
How many multiplications are needed to calculate a10? [J-2023]
(a) 11 (b) 10 (c) 9 (d) 8
[Link] [Link] [Link]
Kindly Send Me Your Key Answer to Our email id - [Link]@[Link]
[Link] [Link].Net3
PREPARED BY… [Link] YOUSUF M.C.A.., [Link]., (PG ASST IN COMPUTER
SCIENCE)
[Yousufaslan5855@[Link]]
3. The unchanging property of a variable in iteration is known as: [J-2019]
(a) Recursion (b) Loop invariant (c) Assignment (d) Condition
(CHapter-9 PART-1) (Introduction to C++)
1. Who developed C++? [S-2020, M-2022]
(a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai
2. The smallest individual unit in a program is: [M-2020]
(a) Program (b) Algorithm (c) Flowchart (d) Tokens
3. Which of the following operator is extraction operator of C++? [J-2019, AUG-
2022, J-2023, J-2024]
(a) >> (b) << (c) <> (d) ^^
4. Which of the following is a valid string literal? [AUG-2022]
(a) ‘A’ (b) ‘Welcome’ (c) 1232 (d) “1232”
5. Assume a=5, b=6; what will be result of a&b? [M-2019]
(a) 4 (b) 5 (c) 1 (d) 0
6. Which of the following operator is received from operator of C++? [J-2019]
(a) >> (b) << (c) <> (d) ^^
7. Which of the following is user defined data type? [M-2020]
(a) Char (b) class (c) float (d) int
8. Which can be used as alternate to \n? [J-2019]
(a) \t (b) \a (c) end l (d) \o
9. In C++ ----is used for pointer to a variable. [M-2024]
(a) - (b) + (c) ÷ (d) *
(CHapter-9 PART-2) (Data Types, Variables and Expressions)
1. How many categories of data types available in C++? [M-2022]
(a) 5 (b) 4 (c) 3 (d) 2
2. Which of the following operator returns the size of the data type? [J-2024]
(a) Size of ( ) (b) Int( ) (c) long ( ) (d) double ( )
3. This can be used as alternate to endl command: [M-2023]
(a) \t (b) \b (c) \0 (d) \n
4. #include<iostream> using namespace std; int main() { int i=1, sum=0;
while(i<=10){ sum=sum+i; i++;
} cout<<sum; return 0;} The output of the following snippet is [M-2024]
(a) 55 (b) 54 (c) 51 (d) 50
(CHapter-10) (Flow of Control)
1. The multi way branching statement: [AUG-2022]
(a) If (b) if … else (c) switch (d) for
2. How many times the following loop will execute? for (int i=0; i<10; i++) [M-2019]
(a) 0 (b) 10 (c) 9 (d) 11
3. Which of the following is the exit control loop? [AUG-2022, J-2024]
(a) For (b) while (c) do…while (d) if…else
4. Which of the following is called entry control loop? [M-2024]
(a) Do-while (b) for (c) while (d) if-else
5. #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 for the following snippet is: [M-
2023]
(a) 20 (b) 10 (c) 25 (d) 15
6. Which of the following statement is used to terminate the execution of the loop
----- [M-2020]
(a)While (b) go to (c) break (d) continue
7. How many times the following loop will execute? for (int i=1; i<10; i++) [M-2022]
(a) 11 (b) 9 (c) 0 (d) 10
8. Which is not a jump statements in C++? [S-2020]
(a) Break (b) go to (c) Switch (d) continue
9. How many times the following loop will execute? for (int i=1; i<5; i++) [J-2023]
(a) 2 (b) 5 (c) 6 (d) 10
(CHapter-11) (Functions)
1. Which of the following header file defines the standard I/O predefined functions?
[S-2020]
(a) stdio.h (b) math.h (c) string.h (d) ctype.h
2. Which function is used to check whether a character is alphanumeric or not. [M-
2019, M-2020, J-2024]
(a) isalpha( ) (b) isdigit( ) (c) isalnum( ) (d) islower( )
[Link] [Link] [Link]
Kindly Send Me Your Key Answer to Our email id - [Link]@[Link]
[Link] [Link].Net4
PREPARED BY… [Link] YOUSUF M.C.A.., [Link]., (PG ASST IN COMPUTER
SCIENCE)
[Yousufaslan5855@[Link]]
3. Which function begins the program execution? [J-2019, AUG-2022, M-2023]
(a) isalpha( ) (b) isdigit( ) (c) main( ) (d) islower( )
4. Which of the following is the scope operator? [M-2019, M-2024]
(a) > (b) & (c) % (d) ::
5. Int x=10; int main() { int x=100; cout<< ::x;} The output for above snippet is : [M-
2022]
(a) 100 (b) x (c) ::x (d) 10
6. If two strings are equal, then strcmp() function returns which value? [J-2023]
(a) 0 (b) -1 (c) +1 (d) =
(CHapter-12) (Arrays and Structures)
1. Which of the following is the collection of variables of the same type that an
referenced by a common name?
(a) int (b) float (c) Array (d) class [M-2022]
2. int age[ ]={6,90,20,18,2}; How many elements are there in this array? [J-2024]
(a) 2 (b) 5 (c) 6 (d) 4
3. int age[ ]={6,80,75,21,10}; How many elements are there in this array? [M-2020]
(a) 2 (b) 5 (c) 6 (d) 4
4. int age[ ]={6,90,12,18,2}; How many elements are there in this array? [AUG-2022]
(a) 2 (b) 5 (c) 6 (d) 4
5. cin>>n[4]; To which element does this statement accepts the value? [M-2019]
(a) 2 (b) 3 (c) 4 (d) 5
6. Array subscripts is always starts with which number? [J-2019]
(a) -1 (b) 2 (c) 0 (d) 3
7. Which keyword is used to create structure in C++? [J-2019, S-2020]
(a) struct (b) structure (c) void (d) const
(CHapter-13) (Introduction to Object Oriented Programming Techniques)
1. The term is used to describe a programming approach based on classes and
objects is – [M-2023]
(a) OOP (b) POP (c) ADT (d) SOP
2. Which of the following is a user defined data type? [M-2020]
(a) Class (b) float (c) Int. (d) Object
3. The identifiable entity with some characteristics and behavior is. [J-2023]
(a) Class (b) object (c) structure (d) member
4. The mechanism by which the data and functions are bound together into single
unit is known as ---- [M-2024]
(a) Inheritance (b) Encapsulation (c) Polymorphism (d) Abstraction
5. “Write once and use it multiple time” can be achieved by---- [M-2022, J-2024]
(a) Redundancy (b) reusability (c) modification (d) composition
6. Which of the following supports the transitive nature of data? [S-2020]
(a) Inheritance (b) Encapsulation (c) Polymorphism (d) Abstraction
7. Which of the following is a technique of building new classes from an existing
class? [J-2019]
(a) Inheritance (b) Abstraction (c) Encapsulation (d) Polymorphism
(CHapter-14) (Classes and objects)
1. Which of the following constructor is executed for the following proto type? [M-
2024]
Add display (add &); // add is a class name
(a) Default (b) Parameterized (c) Copy (d) Non-Parameterized
2. Class product { int code, quantity; float price; int main() { product p1,p2; return 0;
How many bytes will be allocated with memory space of objects (p1)? [AUG-2022]
(a) 4 bytes (b) 8 bytes (c) 12 bytes (d) 2 bytes
3. The functions that perform specific tasks in a class is called: [M-2022]
(a) Inline functions (b) Data members (c) Member functions (d) Online functions
4. How many number of destructors can a class in C++ contain? [S-2020]
(a) 4 (b) 3 (c) 2 (d) 1
5. How many access specifies declared inside class definition? [AUG-2022]
(a) 3 (b) 2 (c) 4 (d) 1
6. A constructor that accepts no parameter is called as: [J-2023]
(a) Parameterized (b) Copy (c) default (d) non- parameterized
(CHapter-15) (Polymorphism)
1. Which of the following refers to a function having more than one distinct
meaning? [J-2024]
(a) Function Overloading (b) Member overloading (c) Operator (d) Operations
[Link] [Link] [Link]
Kindly Send Me Your Key Answer to Our email id - [Link]@[Link]
[Link] [Link].Net5
PREPARED BY… [Link] YOUSUF M.C.A.., [Link]., (PG ASST IN COMPUTER
SCIENCE)
[Yousufaslan5855@[Link]]
2. Which of the following reduces the number of comparisons in a program? [J-
2019]
(a) Operator overloading (b) Operations (c) Function Overloading (d) Member
3. Which of the following is not true with respect to function overloading? [M-2023]
(a) The overloaded functions must differ in their signature
(b) The return type is also considered for overloading a function
(c) The default arguments of overloaded functions are not considered for
Overloading
(d) Destructor function cannot be overloaded
(CHapter-16) (Inheritance)
1. Which of the following is the process of creating new classes from an existing
class— [S-2020]
(a) Polymorphism (b) Inheritance (c) Encapsulation (d) super class
2. Which of the following derives a class student from the base class school [M-
2019]
(a) School: student (b) class student : public school
(c) Student : public school (d) class school : public student
3. Inheritance is process of creating new class from --- [J-2024]
(a) Base class (b) abstract (c) derived class (d) Function
4. Which amongst the following is executed in the order of inheritance? [J-2019, M-
2020, M-2023]
(a) Destructor (b) Member function (c) Constructor (d) Object
5. How many types are there in heritance? [AUG-2022]
(a) 5 (b) 4 (c) 3 (d) 2
6. Inheritance is the process of creating new class from: [J-2023]
(a) Base class (b) Abstract (c) Derived class (d) Function
(CHapter-17) (Computer Ethics and Cyber Security)
1. Which of the following deals with procedures, practices and values? [M-2020, M-
2022]
(a) Piracy (b) programs (c) virus (d) computer ethics
2. Commercial programs made available to the public illegally are known as---- [M-
2023]
(a) Freeware (b) warez (c) Free software (d) software
3. Which one of the following are self-repeating and do not require a computer
program to attach themselves?
(a) Viruses (b) worms (c) spyware (d) Trojans [S-2020]
4. Which of the following is not a malicious program on computer systems? [J-2019]
(a) Worms (b) Trojans (c) spyware (d) cookies
5. A computer network security that monitors and controls incoming and outgoing
traffic is ------ [M-2019, J-2024]
(a) Cookies (b) virus (c) Firewall (d) worms
6. Distributing unwanted e-mail to others is called. [J-2023, M-2024]
(a) Scam (b) spam (c) fraud (d) spoofing
7. Legal recognition for transactions are carried out by [M-2024]
(a) Electronic Data Interchange (b) Electronic Data Exchange
(c) Electronic Data Transfer (d) Electrical Data Interchange
8. Which one of the following is Harass through online? [AUG-2022]
(a) Cyber terrorism (b) Scam (c) Cyber Stalking (d) Fraud
(CHapter-18) (Tamil Computing)
1. Which is not a search engine? [M-2022]
(a) Android (b) Bing (c) Yahoo (d) Google
2. Which of the following is the first Tamil Programming language? [S-2020, J-2023]
(a) Kamban (b) Azhagi (c) Tamil Open Office (d) Ezhil
3. Which one of the following is Harass through online? [AUG-2022]
(a) Cyber terrorism (b) Scam (c) Cyber stalking (d) Fraud