COMPUTER QUIZ
1. The first Unix operating system, as it was
in development stage, was written in the
Ans : B
2. Which one of the
following is not an input device?
Ans : C
3. The input device that is most likely to be
used to play computer game is the
Ans : A
4. The Input device that is closely related to a
touch screen is the
Ans : B
5. A bus is a / an
Ans C
COMPUTER PROGRAMMING
c++
// Addition of Two Array //
#include<iostream.h> main() { int first[20], second[20], c, n; cout << "Enter the number of elements in the array "; cin >> n; cout << "Enter elements of first array " << endl; for ( c = 0 ; c < n ; c++ ) cin >> first[c]; cout << "Enter elements of second array " << endl; for ( c = 0 ; c < n ; c++ ) cin >> second[c]; cout << "Sum of elements of two arrays " << endl; for ( c = 0 ; c < n ; c++ ) cout << first[c] + second[c] << endl; return 0; }