I. (Answer All) : Part-A
I. (Answer All) : Part-A
I. (Answer All) : Part-A
Computer Science
MQP-2
Part-A
I. (Answer all)
1. Transistors
3. The total number of digits in any number system is called a radix / base of a number system.
4. Software is a collection of instructions and data that is concerned with the processing of
data in a computer.
5. Object Oriented Programming is a concept that combines both the data and functions that
operate on a data into a single unit called class.
6. Bjarne Stroustrup.
9. The multiple uses of input/output operators (<< or >>) in a single statement is called
cascading of input and output operators.
17. Manipulators are operators used along with the insertion operator to manipulate or modify
the output. Ex) Setw
Part-C
III. (Answer any 5)
25. Syntax:
if(condition)
{
statements;
}
If the condition is satisfied, the code in the ‘if block’ will be executed, if the condition is not
satisfied, then the ‘if block’ will be ignored.
int a = 10;
int b = 15;
if(a<b)
{
std::cout<< b << “ is greater than “ << a;
}
Here there will not be any output as the condition was not satisfied. If the values were to be
exchanged then the output would be: 15 is greater than 10
26. #include<iostream>
int main(void)
{
int inp;
std::cout << "Enter number of elements: ";
std::cin >> inp;
int ar[inp];
int i = 0;
while(i < inp)
{
std::cin >> ar[i];
i++;
}
}
Part-D
IV. (write 27, 28, 29, 30, 32, 33, 37)
28. A keyboard is a type of input device. They have alphanumeric and punctuation keys, they
detect the key pressed and generate an ASCII code that can be recognized by a computer.
Types of keyboards:
Standard
Ergonomics
Wireless
Virtual
Compact
A mouse is another input device that controls the movement of cursor on the screen. The
display screen is in the form of graphical points(pixels). It’s a device which you can roll on a
flat surface. Either a small rubber ball or an IR reader is placed at the base which tracks the
movement of the mouse and generates a signal which is sent to the system.
31. (SKIPPED)