Anda di halaman 1dari 2

JAVA

FIRST PERIODICAL EXAMINATION

Name: ______________________________________ Score: ______________


Year/Section: _______________________________

I. Multiple Choice. Choose the best answer from the box and write the letter of
your answer on the space before the item.

a. 13 k. Problem analysis
b. Octal l. Hardware
c. Terminal symbol m. 1,0
d. Hardware n. Runtime error
e. 4 o. Computer
f. Flow lines p. Problem Definition
g. Runtime error q. Central Processing Unit
h. Algorithm Design r. Base
i. Software Programs s. Main memory
j. Application Programs t. Output devices

________1. Errors that can be determined before even running the program is called?
________2. A machine that performs a variety of tasks according to specific
instructions is called?
________3. What is the first part of the Software Development Life Cycle (SDLC)?
________4. In flowcharting, what symbol do we use to indicate that an operation is to
be performed?
________5. What are the errors that only pop-up while running the program?
________6. What part of the computer is called the brain?
________7. What is the term used to represent a number in a variety of ways? It is also
called as subscript.
________8. The programs that a user can use to accomplish his/her work is called?
________9. What part of the Software Development Life Cycle (SDLC) involves breaking
down the problem into manageable sub problems?
________10.___________ is the intangible part of a computer.
________11. What are the number(s) that we use in the binary number system?
________12. Example of this devices are the monitor, printer and speaker.
________13. The symbol used to indicate where to start and end in our flowchart is
called?
________14. A component of the computer which consist of electronic and mechanical
parts is called_________?
________15. What is the decimal value of the hexadecimal digit D?
________16. What is the number system that uses the numbers 0 to 7?
________17. What is the octal value of the binary digit 100?
________18. It is sometimes called as Random Access Memory (RAM).
________19. It is a part of the Software Development Life Cycle (SDLC) where it gives a
clear representation of the steps that are needed to solve a problem.
________20. Programs that are needed to keep all the hardware and software systems
running together smoothly
II. Identification. Determine what is being asked and write your answer on the
space before each number.
_________________ 1. Who developed the Java Programming Language?
_________________ 2. What was the first name of the Java Programming Language?
_________________ 3. A line of code terminated by a semicolon is called?
_________________ 4. It is used to store values or state of object in our code.
_________________ 5. What was one of the first projects that was developed using
Java?
_________________ 6. We _________ a variable when we write the code int number;
_________________ 7. It is a part of a program that is terminated using curly braces
_________________ 8. Java is ___________. This means that the identifier Hello is not
the same as hello.
_________________ 9. We _________ a variable when we write the code int
number=0;
________________ 10. These are predefined identifiers reserved by Java for a specific
purpose.

III. From the given erroneous computer program encircle the parts that gives it
error.

public classBasicArithmeticDemo
{

piblic static void main(String[ args)


{
int number1 = 10
int number2 = 5;
Int number3 =2;

int sum == number1 + number2;

int difference = number1 _ number2;

intproduct = number1 * number2;

int quot = number1 - number2;

int rem = number1 % number2

System.out.println("number1 : +number1);
System.out.printLn("number2 : "+number2);
Systemout.println("sum : "+sum);
System.out.println("difference : "+difference)
System.oot.println("product : "+product);
system.out.println("quot : "+quot);
system.out.println("rem : "+rem);
}

Prepared by:
Subject Teacher

Anda mungkin juga menyukai