wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CH 1 - Intro to Computers, Programs, & Java

Total questions: 22

Worksheet time: 12mins

Name
Class
Date
1.

_____ is the physical aspect of the computer that can be seen.

a)

Operating system

b)

Application program

c)

Hardware

d)

Software

2.

____ is the brain of a computer.

a)

Hardware

b)

Disk

c)

CPU

d)

Memory

3.

Why do computers use zeros and ones?

a)

because binary numbers are simplest.

b)

because binary numbers are the bases upon which all other number systems are built.

c)

because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.

d)

because combinations of zeros and ones can represent any numbers and characters.

4.

One byte has bits.

a)

12

b)

4

c)

8

d)

16

5.

A program and its data must be moved into the computer's before they can be executed by the CPU.

a)

CPU

b)

memory

c)

hard disk

d)

CD-ROM

6.

A computer's is volatile; that is, any information stored in it is lost when the system's power is turned off.

a)

memory

b)

flash stick

c)

hard disk

d)

CD-ROM

7.

Which of the following are storage devices?

a)

portable disk

b)

hard disk

c)

flash stick

d)

CD-ROM

8.

The specifies the number of pixels in horizontal and vertical dimensions of the display device.

a)

pixel

b)

screen resolution

c)

dot pitch

d)

monitor

9.

_______ are instructions to the computer.

a)

Hardware

b)

Programs

c)

Keyboards

d)

Software

10.

Computer can execute the code in

a)

machine language

b)

assembly language

c)

high-level language

d)

none of the above

11.

______ translates high-level language program into machine language program.

a)

An assembler

b)

operating system

c)

A compiler

d)

CPU

12.

________is an operating system.

a)

Windows

b)

Java

c)

Visual Basic

d)

C++

e)

Ada

13.

_______ is a program that runs on a computer to manage and control a computer's activities.

a)

Modem

b)

Interpreter

c)

Operating system

d)

Java

e)

Compiler

14.

Which is not an object-oriented programming language.

a)

Python

b)

C

c)

C#

d)

Java

e)

C++

15.

                 consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.

a)

Java JDK

b)

Java language specification

c)

Java API

d)

Java IDE

16.

                  provides an integrated development environment (IDE) for rapidly developing Java programs. Editing,

compiling, building, debugging, and online help are integrated in one graphical user interface.

a)

Eclipse

b)

Java API

c)

Java JDK

d)

Java language specification

17.

The main method header is written as:

a)

public static void main(string[] args)

b)

public void main(String[] args)

c)

public static void Main(String[] args)

d)

public static main(String[] args)

e)

public static void main(String[] args)

18.

Java compiler translates Java source code into                   .

a)

another high-level language code

b)

assembly code

c)

machine code

d)

Java bytecode

19.

                   is a software that interprets Java bytecode.

a)

API

b)

Compiler

c)

JVM

d)

Java

20.

  A block is enclosed inside                     .

a)

brackets

b)

parentheses

c)

quotes

d)

braces

21.

If a program compiles fine, but it produces incorrect result, then the program suffers                      .

a)

runtime error

b)

compile error

c)

logic error

d)

fake data error

22.

If you forget to put a closing quotation mark on a string, what kind of error will be raised?

a)

logic error

b)

compile error

c)

runtime error

d)

fake data error