Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CHAPTER EXAM

Computer Programming I

Name: Course and Year: Time:

Read the questions carefully and encircle the correct answer.

1. What is an example of a programming language?


A. MTHL B. Strict Query Language C. Structure D. Java
2. The path environment variable should have an entry for what?
A. System B. JDK bin directory C. Database D. Path
3. Which of the following is a programming language keyword used to resume program execution
at the statement immediately following the current statement
A. Break B.Case C. System D. Casting
4. It refers to a keyword that defines a group of statements to begin executing if a value specified
matches the value defined by a preceding “switch”
A. Database Instance B. Case C. Break D. Java
5. Which Statements is relevant to continue ?
A. It is used to resume program execution at the end of the current loop
B. It is used to resume program execution at the start of the current loop
C. Cannot contain duplicate values or nulls.
D. No redundant attributes
6. Refers to a public class that is a standard member of the java platform
A. Continue B. Core class C. Constructor D. Java
7. Select the best definition of Static?
A. It is a keyword used to define class variables and class methods
B. It is a bunch of classes
C. Super attribute
D. It is a process of breaking down a problem into smaller pieces.
8. It signifies that the method or variable can only be accessed by elements residing in its class,
subclass, or classes in the same package.
A. Protected B. Relational data model C. Relational model
9. Refers to an electronic device operating under the control of instructions stored in his own
memory
A. Computer B. Modem C. Mouse D. Hard disk
10. It refers to any hardware component that conveys information to one or more people.
A. Computer B. Modem C. Mouse D. Hard disk
11. A case that contains the electronic components of the computer that are used to process data
A. System unit B. Keyboard C. Monitor D. RAM
12. Which of the following is a set of built-in primitive instructions that are in the form of binary
code?
A. Machine Language B. Assembly Language C. Program Language

13. Which of the following is a low-level programming language written for a written for a specific
type of CPU and converted to an executable machine code but requires a compiler to interpret.
A. Machine Language B. Assembly Language C . High level Language
14. Which one is a platform independent language that can run on different types of machines with
instructions written in statements
A. Machine Language B. Assembly Language C . High level Language
15. It is a program language that was designed in 1991 for use in embedded chips in consumer
electronic appliances.
A. Java B. HTML C. Assembly Language D. Machine Language
16. Who invented Java at Sun Microsystems ?
A. James Gosling B. Bill Gates C. Ada Lovelace D. Mark Zuckerberg
17. Every Java program must have at least
A. Interpreter B. Compiler C. One class D. Java
18. Which of the following cause the distribution of data point to be offset with respect to the true
value.
A. Repeatability B. Semantic error C. Interpreter D. Error
19. It refers to a measure of how the output returns to a given value when the same precise input is
applied several times.
A. Systematic error B. Repeatability C. Interpreter D. Compiler

20 – 25 identify the underlined parts of the code.

public class MyClass {


1
pubic statistic void main(String[] args) {
2 3
System.out.println (“Hello World”);
4 5
}

You might also like