Xi-Cs-Reduced - Syllabus Q & A - 21
Xi-Cs-Reduced - Syllabus Q & A - 21
Xi-Cs-Reduced - Syllabus Q & A - 21
1. INTRODUCTION TO COMPUTERS
Choose the correct answer (1 Mark)
1. First generation computers used
(a)Vacuum tubes (b) Transistors (c) Integrated circuits (d) Microprocessors
10. Which generation of computer used IC‟s?
(a) First (b) Second (c) Third (d) Fourth
Very Short Answers (2 Mark)
1. What is a computer?
2. Distinguish between data and information.
Short Answers (3 Mark)
1. What are the characteristics of a computer?
2. Write the applications of computer.
Explain in detail (5 Mark)
2. Discuss the various generations of computers.
2. NUMBER SYSTEMS
Choose the correct answer (1 Mark)
1. Which refers to the number of bits processed by a computer‟s CPU?
A) Byte B) Nibble C) Word length D) Bit
2. How many bytes does 1 Kilobyte contain?
A) 1000 B) 8 C) 4 D) 1024
4. 2^50 is referred as
A) Kilo B) Tera C) Peta D) Zetta
5. How many characters can be handled in Binary Coded Decimal System?
A) 64 B) 255 C) 256 D) 128
6. For 11012 what is the Hexadecimal equivalent?
A) F B) E C) D D) B
7. What is the 1‟s complement of 00100110?
A) 00100110 B) 11011001 C) 11010001 D) 00101001
8. Which amongst this is not an Octal number?
A) 645 B) 234 C) 876 D) 123
Very Short Answers (2 Mark)
1. What is data?
2. Write the 1‟s complement procedure.
3. Convert (46)10 into Binary number
4. We cannot find 1‟s complement for (28)10. State reason.
Short Answers (3 Mark)
1. What is radix of a number system? Give example
2. Write note on binary number system.
3. Convert (150)10 into Binary, then convert that Binary number to Octal
5. Add a) -2210+1510 b) 2010+2510
1
Explain in detail (5 Mark)
1. a) Write the procedure to convert fractional Decimal to Binary
b) Convert (98.46)10 to Binary
2. Find 1‟s Complement and 2‟s Complement for the following Decimal number
a) -98 b) -135
3. COMPUTER ORGANIZATION
Choose the correct answer (1 Mark)
1. Which of the following is said to be the brain of a computer?
(a) Input devices (b) Output devices (c) Memory device (d) Microprocessor
2. Which of the following is not the part of a microprocessor unit?
(a) ALU (b) Control unit (c) Cache memory (d) register
3. How many bits constitute a word?
(a) 8 (b) 16 (c) 32 (d) Determined by the processor used.
4. Which of the following device identifies the location when address is placed in the memory address
register?
(a) Locator (b) Encoder (c) Decoder (d) Multiplexer
5. Which of the following is a CISC processor?
(a) Intel P6 (b) AMD K6 (c) Pentium III (d) Pentium IV
6. Which is the fastest memory?
(a) Hard disk (b) Main memory (c) Cache memory (d) Blue-Ray disk
7. How many memory locations are identified by a processor with 8 bits address bus at a time?
(a) 28 (b) 1024 (c) 256 (d) 8000
8. What is the capacity of 12cm diameter DVD with single sided and single layer?
(a) 4.7 GB (b) 5.5 GB (c) 7.8GB (d) 2.2 GB
9. What is the smallest size of data represented in a CD?
(a) Blocks (b) Sectors (c) Pits (d) Tracks
Very Short Answers (2 Mark)
(1) What are the parameters which influence the characteristics of a microprocessor?
(2) What is an instruction?
(5) Which source is used to erase the content of a EPROM?
Short Answers (3 Mark)
(1) Differentiate Computer Organization from Computer Architecture.
(2) Classify the microprocessor based on the size of the data.
(3) Write down the classifications of microprocessors based on the instruction set.
(4) Differentiate PROM and EPROM.
(6) Differentiate CD and DVD
(7) How will you differentiate a flash memory and an EEPROM?
Explain in detail (5 Mark)
(1) Explain the characteristics of a microprocessor.
(3) Arrange the memory devices in ascending order based on the access time.
(4) Explain the types of ROM.
2
3
4. THEORETICAL CONCEPTS OF OPERATING SYSTEM
Choose the correct answer (1 Mark)
1. Operating system is a
a) Application Software b) Hardware c) System Software d) Component
2. Identify the usage of Operating Systems
a) Easy interaction between the human and computer b) Controlling input & output Devices
c) Managing use of main memory d) All the above
4. Which of the following OS is a commercially licensed Operating system?
a) Windows b) UBUNTU c) FEDORA d) REDHAT
5. Which of the following Operating systems support Mobile Devices?
a)Windows 7 b)Linux c) BOSS d) iOS
8. An example for single task operating system is
a) Linux b) Windows c) MS-DOS d) Unix
Very Short Answers (2 Mark)
1) List out any two uses of Operating System?
2) What is the multi-user Operating system?
6) What are the different Operating Systems used in computer?
3. Exchange the contents: Given two glasses marked A and B. Glass A is full of apple drink and glass B is
full of grape drink. For exchanging the contents of glasses A and B, represent the state by suitable
variables, and write the specification of the algorithm.
(a) (1) only (b) (2) only (c) both (1) and (2) (d) neither (1) nor (2)
6
Short Answers (3 Mark)
1. For the given two flowcharts write the pseudo code.
3. Decanting problem. You are given three bottles of capacities 5 ,8, and 3 litres. The 8L bottle is filled
with oil, while the other two are empty. Divide the oil in 8L bottle into two equal quantities. Represent
the state of the process by appropriate variables. What are the initial and final states of the process?
Model the decanting of oil from one bottle to another by assignment. Write a sequence of assignments to
achieve the final state.
4. Trace the step-by-step execution of the algorithm for factorial(4).
factorial(n)
-- inputs : n is an integer , n ≥ 0
-- outputs : f = n!
f, i := 1 ,1
while i ≤ n
f, i := f × i, i+1 7
Choose the correct answer (1 Mark)
1. A loop invariant need not be true
(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. We wish to cover a chessboard with dominoes, the number of black squares and the number of
white squares covered by dominoes, respectively, placing a domino can be modeled by
(a) b := b + 2 (b) w := w + 2 (c) b, w := b+1, w+1 (d) b := w
3. If m x a + n x b is an invariant for the assignment a, b : = a + 8, b + 7, the values of m and n are
(a) m = 8, n = 7 (b) m = 7, n = -8 (c) m = 7, n = 8 (d) m = 8, n = -7
4. Which of the following is not an invariant of the assignment?
m, n := m+2, n+3
(a) m mod 2 (b) n mod 3 (c) 3 X m - 2 X n (d) 2 X m - 3 X n
Very Short Answers (2 Mark)
1. What is an invariant?
2. Define a loop invariant.
3. Does testing the loop condition affect the loop invariant? Why?
4. What is the relationship between loop invariant, loop condition and the input- output recursively?
Short Answers (3 Mark)
1. There are 7 tumblers on a table, all standing upside down. You are allowed to turn any 2 tumblers
simultaneously in one move. Is it possible to reach a situation when all the tumblers are right side up?
(Hint: The parity of the number of upside down tumblers is invariant.)
9. INTRODUCTION TO C++
Choose the correct answer (1 Mark)
1. Who developed C++?
(a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai
2. What was the original name given to C++?
(a) CPP (b) Advanced C (c) C with Classes (d) Class with C
3. Who coined C++?
(a) Rick Mascitti (b) Rick Bjarne (c) Bill Gates (d) Dennis Ritchie
4. The smallest individual unit in a program is:
(a) Program (b) Algorithm (c) Flowchart (d) Tokens
5. Which of the following operator is extraction operator in C++?
(a) >> (b) << (c) <> (d) ^^
6. Which of the following statements is not true?
(a) Keywords are the reserved words which convey specific meaning to the C++ compiler.
(b) Reserved words or keywords can be used as an identifier name.
(c) An integer constant must have at least one digit without a decimal point.
8
(d) Exponent form of real constants consist of two parts
7. Which of the following is a valid string literal?
(a) „A‟ (b) „Welcome‟ (c) 1232 (d) “1232”
8. A program written in high level language is called as
(a) Object code (b) Source code (c) Executable code (d) All the above
9. Assume a=5, b=6; what will be result of a&b?
(a) 4 (b) 5 (c) 1 (d) 0
10. Which of the following is called as compile time operators?
(a) sizeof (b) pointer (c) virtual (d) this
Very Short Answers (2 Mark)
1. What is meant by a token? Name the token available in C++.
2. What are keywords? Can keywords be used as identifiers?
3. The following constants are of which type?
(i) 39 (ii) 032 (iii) 0XCAFE (iv) 04.14
4. Write the following real constants into the exponent form:
(i) 23.197 (ii) 7.214 (iii) 0.00005 (iv) 0.319
5. Assume n=10; what will be result of n++ and --n;?
6. Match the following
A B
a) Modulus 1) Tokens
b) Separators 2) Remainder of a division
c) Stream extraction 3) Punctuators
d) Lexical Units 4) get from
Short Answers (3 Mark)
1. Describe the differences between keywords and identifiers?
2. Is C++ case sensitive? What is meant by the term “case sensitive”?
3. Differentiate “=” and “==”.
4. What is the use of a header file?
5. Why is main function special?
Explain in detail (5 Mark)
1. Write about Binary operators used in C++.
2. What are the types of Errors?
DATA TYPES, VARIABLES AND EXPRESSIONS
Choose the correct answer (1 Mark)
1. How many categories of data types are available in C++?
(a) 5 (b) 4 (c) 3 (d) 2
2. Which of the following data types is not a fundamental type?
(a) signed (b) int (c) float (d) char
3. What will be the result of following statement?
char ch= „B‟;
cout << (int) ch;
9
10
(a) B (b) b (c) 65 (d) 66
4. Which of the character is used as suffix to indicate a floating point value?
(a) F (b) C (c) L (d) D
5. How many bytes of memory is allocated for the following variable declaration if you are using
Dev C++? short int x;
(a) 2 (b) 4 (c) 6 (d) 8
6. What is the output of the following snippet?
char ch = „A‟;
ch = ch + 1;
(a) B (b) A1 (c) F (d) 1A
7. Which of the following is not a data type modifier?
(a) signed (b) int (c) long (d) short
8. Which of the following operator returns the size of the data type?
(a) sizeof( ) (b) int ( ) (c) long ( ) (d) double ( )
9. Which operator is used to access reference of a variable?
(a) $ (b) # (c) & (d) !
Very Short Answers (2 Mark)
1. Write a short note on const keyword with an example.
3. Why is char often treated as integer data type?
4. What is a reference variable? What is its use?
5. Consider the following C++ statement. Are they equivalent?
char ch = 67; char ch = „C‟;
6. What is the difference between 56L and 56?
7. Determine which of the following are valid constant? And specify their type.
(i) 0.5 (ii) „Name‟ (iii) „\t‟ (iv) 27,822
8. Suppose x and y are two double type variable that you want add as integer and assign to an integer
variable. Construct a C++ statement to do the above.
9. What will be the result of following if num=6 initially.
(a) cout << num; (b) cout << (num==5);
10. Which of the following two statements are valid? Why? Also write their result.
(i) int a; a = 3,014; (ii) int a; a=(3,014);
Short Answers (3 Mark)
1. What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give
example for each of them.
2. How relational operators and logical operators are related to one another?
3. Evaluate the following C++ expressions where x, y, z are integers and m, n are floating point
Numbers. The value of x = 5, y = 4 and m=2.5;
(i) n = x + y / x; (ii) z = m * x + y; (iii) z *= x * m + x;
11. FUNCTIONS
Choose the correct answer (1 Mark)
3. Which function begins the program execution ?
A) isalpha() B) isdigit() C) main() D) islower()
4. Which of the following function is with a return value and without any argument ?
A) x=display(int, int) B) x=display() C) y=display(float) D) display(int)
5. Which is return data type of the function prototype of add(int, int); ?
A) int B) float C) char D) double
6. Which of the following is the scope operator ?
A) > B) & C) % D) ::
Very Short Answers (2 Mark)
1. Define Functions.
3. What are importance of void data type.
4. What is Parameter and list its types?
5. Write a note on Local Scope. 12
13
Short Answers (3 Mark)
5. What are the information the prototype provides to the compiler ?
6. What is default arguments ? Give example.
Explain in detail (5 Mark)
1. Explain Call by value method with suitable example.
2. What is Recursion? Write a program to find the factorial of the given number using recursion.
3. What are the different forms of function return? Explain with example.
4. Explain scope of variable with example.
5. Write a program to accept any integer number and reverse it.
15
3. Write the output of the following
#include<iostream>
using namespace std;
class student
{
int rno, marks;
public:
student(int r,int m)
{ cout<<"Constructor "<<endl;
rno=r;
marks=m;
}
void printdet()
{
marks=marks+30;
cout<<"Name: Bharathi"<<endl;
cout<<"Roll no : "<<rno<<"\n";
cout<<"Marks : "<<marks<<endl;
}
};
int main()
{
student s(14,70);
s.printdet();
cout<< "Back to Main";
return 0;
}
15. POLYMORPHISM
Choose the correct answer (1 Mark)
1. Which of the following refers to a function having more than one distinct meaning?
(A) Function Overloading (B) Member overloading
(C) Operator overloading (D) Operations overloading
2. Which of the following reduces the number of comparisons in a program ?
(A) Operator overloading (B) Operations overloading
(C) Function Overloading (D) Member overloading
3. void dispchar(char ch=‟$‟,int size=10)
{
for(int i=1;i<=size;i++)
cout<<ch;
}
16
17
How will you invoke the function dispchar() for the following input?
To print $ for 10 times
(A) dispchar(); (B) dispchar(ch,size); (C) dispchar($,10); (D)dispchar(„$‟,10 times);
4. Which of the following is not true with respect to function overloading?
(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.
5. Which of the following is invalid prototype for function overloading
a) void fun (intx); b) void fun (intx);
void fun (char ch); void fun (inty);
c) void fun (double d); d) void fun (double d);
void fun (char ch); void fun (inty);
Very Short Answers (2 Mark)
1. What is function overloading?
2. List the operators that cannot be overloaded.
3. class add{int x; public: add(int)}; Write an outline definition for the constructor.
4. Does the return type of a function help in overloading a function?
5. What is the use of overloading a function?
Short Answers (3 Mark)
1. What are the rules for function overloading?
2. How does a compiler decide as to which function should be invoked when there are many
functions? Give an example.
3. What is operator overloading? Give some examples of operators which can be overloaded.
Explain in detail (5 Mark)
1. What are the rules for operator overloading?
4. Answer the questions based on the following program
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
17
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
(i) Mention the objects which will have the scope till the end of the program.
(ii) Name the object which gets destroyed in between the program
(iii) Name the operator which is over loaded and write the statement that invokes it.
(iv) Write out the prototype of the overloaded member function
(v) What types of operands are used for the overloaded operator?
(vi) Which constructor will get executed in the above program? Write the output of the program
16. INHERITANCE
Choose the correct answer (1 Mark)
1. Which of the following is the process of creating new classes from an existing class
(a) Polymorphism (b) Inheritance (c) Encapsulation (d) super class
2. Which of the following derives a class student from the base class school
(a) school: student (b) class student : public school
(c) student : public school (d) class school : public student
3. The type of inheritance that reflects the transitive nature is
(A) Single Inheritance (B) Multiple Inheritance
(C) Multilevel Inheritance (D) Hybrid Inheritance
5. Inheritance is a process of creating new class from
(A) Base class (B) abstract (C) derived class (D) Function
6. A class is derived from a class which is a derived class itself, then this is referred to as
(A) multiple inheritance (B) multilevel inheritance
(C) single inheritance (D) double inheritance
Very Short Answers (2 Mark)
1. What is inheritance?
2. What is a base class?
3. Why derived class is called power packed class?
4. In what multilevel and multiple inheritance differ though both contains many base class?
5. What is the difference between public and private visibility mode?
Short Answers (3 Mark)
1. What are the points to be noted while deriving a 18 new class?
19
2. What is difference between the members present in the private visibility mode and the members
present in the public visibility mode
3. What is the difference between polymorphism and inheritance though are usedfor reusability
of code?
Explain in detail (5 Mark)
1. Explain the different types of inheritance
5. Debug the following program
19
18. TAMIL COMPUTING
Very Short Answers (2 Mark)
1. List the search engines supported by Tamil language.
2. What are the keyboard layouts used in Android?
3. Write a short note about Tamil Programming Language.
4. What is TSCII?
5. Write a short note on Tamil Virtual Academy.
20