# How Good Are You With Computers?

10 Questions | Total Attempts: 161  Settings  • 1.
What will be the output of the program?  int i = (int) Math.random();
• A.

I=0

• B.

I=1

• C.

Value of i is undetermined.

• D.

Statement causes a compile error

• 2.
Which of the following is the most widely used alphanumeric code for computer input and output?
• A.

Gray.

• B.

ASCII.

• C.

Parity.

• D.

EBCDIC

• 3.
A logic circuit that provides a HIGH output for both inputs HIGH or both inputs LOW is a(n):
• A.

Ex-NOR gate.

• B.

OR gate.

• C.

Ex-OR gate.

• D.

NAND gate.

• 4.
What does the following function do?   int fun(int x, int y){      if (y == 0) return 0;   return (x + fun(x, y-1));   }
• A.

X+y

• B.

X+x*y

• C.

X*y

• D.

X^y

• 5.
Which type of gate can be used to add two bits?
• A.

Ex-OR

• B.

Ex-NOR

• C.

Ex-NAND

• D.

NOR

• 6.
Hexadecimal letters A through F are used for decimal equivalent values from:
• A.

1 through 6

• B.

9 through 14

• C.

10 through 15

• D.

11 through 17

• 7.
The brain of any computer system is:
• A.

ALU.

• B.

Memory.

• C.

CPU.

• D.

Control unit.

• E.

None of the above.

• 8.
The list of coded instructions is calle﻿d:
• A.

Computer program.

• B.

Algorithm.

• C.

Flowchart.

• D.

Utility programs.

• E.

None of the above.

• 9.
A computer will function only if it
• A.

Has a control unit.

• B.

Is given input data.

• C.

Has a program in its memory.

• D.

Has software package.

• E.

None of the above.

• 10.
What will be the output of the program?  String x = "xyz";  x.toUpperCase(); /* Line 2 */  String y = x.replace('Y', 'y'); y = y + "abc";  System.out.println(y);
• A.

AbcXyZ

• B.

Abcxyz

• C.

Xyzabc

• D.

XyZabc

Related Topics Back to top