Font size
WorksheetsCH 1 - Intro to Computers, Programs, & Java
Total questions: 22
Worksheet time: 12mins
_____ is the physical aspect of the computer that can be seen.
Operating system
Application program
Hardware
Software
____ is the brain of a computer.
Hardware
Disk
CPU
Memory
Why do computers use zeros and ones?
because binary numbers are simplest.
because binary numbers are the bases upon which all other number systems are built.
because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
because combinations of zeros and ones can represent any numbers and characters.
One byte has bits.
12
4
8
16
A program and its data must be moved into the computer's before they can be executed by the CPU.
CPU
memory
hard disk
CD-ROM
A computer's is volatile; that is, any information stored in it is lost when the system's power is turned off.
memory
flash stick
hard disk
CD-ROM
Which of the following are storage devices?
portable disk
hard disk
flash stick
CD-ROM
The specifies the number of pixels in horizontal and vertical dimensions of the display device.
pixel
screen resolution
dot pitch
monitor
_______ are instructions to the computer.
Hardware
Programs
Keyboards
Software
Computer can execute the code in
machine language
assembly language
high-level language
none of the above
______ translates high-level language program into machine language program.
An assembler
operating system
A compiler
CPU
________is an operating system.
Windows
Java
Visual Basic
C++
Ada
_______ is a program that runs on a computer to manage and control a computer's activities.
Modem
Interpreter
Operating system
Java
Compiler
Which is not an object-oriented programming language.
Python
C
C#
Java
C++
consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.
Java JDK
Java language specification
Java API
Java IDE
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.
Eclipse
Java API
Java JDK
Java language specification
The main method header is written as:
public static void main(string[] args)
public void main(String[] args)
public static void Main(String[] args)
public static main(String[] args)
public static void main(String[] args)
Java compiler translates Java source code into .
another high-level language code
assembly code
machine code
Java bytecode
is a software that interprets Java bytecode.
API
Compiler
JVM
Java
A block is enclosed inside .
brackets
parentheses
quotes
braces
If a program compiles fine, but it produces incorrect result, then the program suffers .
runtime error
compile error
logic error
fake data error
If you forget to put a closing quotation mark on a string, what kind of error will be raised?
logic error
compile error
runtime error
fake data error
