Sie sind auf Seite 1von 1

LILO-AN NATIONAL HIGH SCHOOL

SENIOR HIGH SCHOOL


2nd Periodical Exams
TVL-ICT PROGRAMMING1

Name of Student: ___________________________Grade/Section : 12- TVL-ICT Date: _________


Test 1. True of False .
I. Indicate whether the statement is true or false. Write T or F on the space provided
____1. // indicates a comment lines.
____2. Blank lines can be used to so that programs are easier to read.
____3. Java programs must have at least one class declaration that is defined.
____4. A left brace indicates the beginning of the body of a class declaration.
____5. System.out allows Java applications to display characters in the command window.
____6. There are no core Java classes in the unnamed default package.
____7. The import statement bring certain class or entire packages into visibility.
____8. Scanner class is a class in java.util that allows the user to read values from keyboard or file.
____9. Class constructors can be utilized in two ways.
___10. Scanner searches for tokens in input.
Test II. Multiple Choice : Circle the letter of the correct answer.
1. It is used in mathematical expressions in the same way that they are used in algebra.
a. Arithmetic b. bitwise c. relational d. Boolean
2. It determines the relationship of one operand to other operands.
a. Arithmetic b. bitwise c. relational d. Boolean
3. It only operates on Boolean operands.
a. Arithmetic b. bitwise c. relational d. Boolean
4. It is used to direct program execution in two different routes.
a. If b. switch c. default d. break
5. It is used for forward execution to different parts of the user’s program based on the value of an expression.
a. If b. switch c. default d. break
6. Which four options describe the current default values for array elements of the types indicated?
a. Int ->0 b. String ->”null” c. char ->’iu000’ d. float ->0.0f
7. Which will legally declare, construct, and initialize an array?
a. Int[] myList ={“1”,”2”,”3”}; b. int[] myList = (5,8,2); c. int myList[]={4,3,7};
8. Java was developed by ___________.
a. Sun Microsystems b. Microsoft c. Oracle d. IBM
9. Java _____ can run from a Web browser.
a. Application b. applets c. servlets d. Micro Edition Program
10. _____ is a technical definition of the languages that includes the syntax and semantics of the java programming
language.
a. Java language specifications b. Java API C. Java JDK
11. _______ contains predefined classes and interfaces for developing Java programs.
a. Java language specifications b. Java API c. Java JDK
12. The main method header is written as:
a. Public static void main (string[]args);
b. Public static void main(string [] args)
c. public static void main (String[] arg);
13. Which of the following statement is correct?
a. Every line in a program must end with a Semicolon.
b. Every Statement in a program must end with a semicolon.
c. Every comment line must end with a semicolon
14. The JDK command to compile a class in the file Test.java is.
a. Java Test b. Java Test.java c. javac Test.java
15. Java compiler translates Java source code into ________.
a. Java bytecode
b. Machine code
c. Assembly code
Test III. Fill in the blanks the correct answer.
____________1. Area between the braces.
____________2. Abstract computing machine that enables a computer to run a Java program.
____________3. Names of variables, methods, classes, packages, and interfaces.
____________4. Numbers represented by a (+) or (-) sign .
____________5. Memory spaces utilized to keep values.
____________6. Consists of byte , short, int, and long that represent signed whole numbers.
____________7. Technique for organizing Java classes into namespaces providing modular programming in Java.
____________8. Symbol that is used to perform operations.
____________9. Special kind of program that sends application over the internet.
___________10. Programming commands that are made by a programmer with a text editor and then saved in a file,

Goodluck : Marites C. Melendres/ICT Programming Teacher

Das könnte Ihnen auch gefallen