JAVA STUDY TEST QUESTIONS WITH
ALL CORRECT ANSWERS
In object-oriented programming a class is
A) a group of people sharing the same relationship to the means of production.
B) the term used for program.
C) a model or template from which objects are created.
D) a grouping of users sharing common objectives.
E) a procedure for a calculation inside a program. - Answer-C) a model or template
from which objects are created.
Carrying out the steps of a program, starting with the first, then the second and
proceeding to the last is known as _______ processing. - Answer-sequential.
Which of the following is not true?
A) An algorithm allows ambiguity.
B) An algorithm, when carried out, must eventually stop.
C) An algorithm, can be carried out by a human being. - Answer-A) An algorithm allows
ambiguity.
In Java, an argument is
A) a logical sequence of statements proving the correctness of a program.
B) information that a method returns to its caller.
C) information provided to a method.
D) a verbal dispute. - Answer-C) information provided to a method.
Changing the flow of control in a program to jump to some pre-written code is known as
___________ a method. - Answer-Calling.
The rules that govern the correct order and usage of the elements of a language are
called the______ of the language - Answer-Syntax
When a program runs on a computer, the part of the computer that carries out the
instructions is called the_____ - Answer-Central Processing Unit(CPU)
, When a program runs on a computer, it is stored in_______. - Answer-Random Access
Memory(RAM)
When a program is not running, it is stored on_________. - Answer-A disk.
Mice, trackpads, keyboards, scanners, joysticks are all examples of________. -
Answer-input devices.
Mice, trackpads, keyboards, scanners, joysticks are all examples of________. -
Answer-Output devises.
Choose: An operating system
a. is the chief hardware unit of a computer
b. is loaded into the computer each time it needs to carry out an operation
c. ensures that programs will not run on the computer at the same time
d. allocates resources like memory to programs that are running - Answer-D. Allocates
resources like memory to programs that are running.
In a network, a computer that performs specific services for other computers on the
network is called a _____. - Answer-Server.
In a network, a computer that requests specific services for other computers on the
network is called a ________. - Answer-Client.
Which statement is NOT true:
A) Machine languages can be used to express algorithms.
B) Machine languages can be used to write programs that can run on any machine.
C) Machine language consists of zeros and ones.
D) Machine language is produced by compilers. - Answer-B: Machine languages can
be used to write programs that can run on any machine.
A compiler
A) maintains a collection of programs
B) tests a program's logic
C) translates source code into executable code
D) translates executable code to machine code - Answer-C) Translates source code
into executable code.
In object-oriented programming a method is
A) A design technique for creating classes.
B) A disciplined way of writing programs.
C) An approach developed by the great Stanislawski.
a process for instantiating an object.
ALL CORRECT ANSWERS
In object-oriented programming a class is
A) a group of people sharing the same relationship to the means of production.
B) the term used for program.
C) a model or template from which objects are created.
D) a grouping of users sharing common objectives.
E) a procedure for a calculation inside a program. - Answer-C) a model or template
from which objects are created.
Carrying out the steps of a program, starting with the first, then the second and
proceeding to the last is known as _______ processing. - Answer-sequential.
Which of the following is not true?
A) An algorithm allows ambiguity.
B) An algorithm, when carried out, must eventually stop.
C) An algorithm, can be carried out by a human being. - Answer-A) An algorithm allows
ambiguity.
In Java, an argument is
A) a logical sequence of statements proving the correctness of a program.
B) information that a method returns to its caller.
C) information provided to a method.
D) a verbal dispute. - Answer-C) information provided to a method.
Changing the flow of control in a program to jump to some pre-written code is known as
___________ a method. - Answer-Calling.
The rules that govern the correct order and usage of the elements of a language are
called the______ of the language - Answer-Syntax
When a program runs on a computer, the part of the computer that carries out the
instructions is called the_____ - Answer-Central Processing Unit(CPU)
, When a program runs on a computer, it is stored in_______. - Answer-Random Access
Memory(RAM)
When a program is not running, it is stored on_________. - Answer-A disk.
Mice, trackpads, keyboards, scanners, joysticks are all examples of________. -
Answer-input devices.
Mice, trackpads, keyboards, scanners, joysticks are all examples of________. -
Answer-Output devises.
Choose: An operating system
a. is the chief hardware unit of a computer
b. is loaded into the computer each time it needs to carry out an operation
c. ensures that programs will not run on the computer at the same time
d. allocates resources like memory to programs that are running - Answer-D. Allocates
resources like memory to programs that are running.
In a network, a computer that performs specific services for other computers on the
network is called a _____. - Answer-Server.
In a network, a computer that requests specific services for other computers on the
network is called a ________. - Answer-Client.
Which statement is NOT true:
A) Machine languages can be used to express algorithms.
B) Machine languages can be used to write programs that can run on any machine.
C) Machine language consists of zeros and ones.
D) Machine language is produced by compilers. - Answer-B: Machine languages can
be used to write programs that can run on any machine.
A compiler
A) maintains a collection of programs
B) tests a program's logic
C) translates source code into executable code
D) translates executable code to machine code - Answer-C) Translates source code
into executable code.
In object-oriented programming a method is
A) A design technique for creating classes.
B) A disciplined way of writing programs.
C) An approach developed by the great Stanislawski.
a process for instantiating an object.