0% found this document useful (0 votes)
5 views3 pages

CSS 12 EXAM

This document is a Grade 12 Computer Programming 1st Monthly Examination created by teacher Jay March Selibio. It includes a series of true/false statements and multiple-choice questions covering topics such as operating systems, Java programming concepts, and data types. The exam assesses students' understanding of computer programming fundamentals and Java language features.

Uploaded by

Jay Selibio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

CSS 12 EXAM

This document is a Grade 12 Computer Programming 1st Monthly Examination created by teacher Jay March Selibio. It includes a series of true/false statements and multiple-choice questions covering topics such as operating systems, Java programming concepts, and data types. The exam assesses students' understanding of computer programming fundamentals and Java language features.

Uploaded by

Jay Selibio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Programming Grade 12

1ST MONTHLY EXAMINATION


NAME: __________________________ YEAR/STRAND: ___________________
TEACHER: Jay March Selibio, LPT DATE:___________________________

Write TRUE in the blank before each statement if the statement


is correct and FALSE if otherwise.
_____1. A computer's operating system is responsible for managing hardware resources and providing
a platform for applications to run.

_____2. When you delete a file from your computer, it is permanently removed from the hard drive
immediately.

_____3. Using keyboard shortcuts can significantly improve your efficiency when performing common
tasks on a computer

_____4. It is safe to turn off your computer by holding down the power button without shutting down
the operating system properly.

_____5. Installing software from unknown sources can pose a security risk to your computer.

_____6. A Solid State Drive (SSD) is typically faster and more durable than a Hard Disk Drive (HDD).

_____7. RAM (Random Access Memory) retains its data even when the computer is turned off.

_____8. External storage devices, like USB flash drives, can be used to transfer data between
computers.

_____9. ROM (Read-Only Memory) is typically used to store the BIOS firmware that boots up the
computer.

_____10. Cloud storage is a type of local storage device that can only be accessed from the device it is
installed on.

II. Multiple Choice


Questions: Choose the
correct answer from the
choices for each question.

11. What is the correct way to handle


exceptions in Java?
a. try-catch 13. What is the purpose of the 'static'
b. if-else keyword in Java?
c. switch-case a. To create multiple instances of a class
d. for-loop b. To declare a variable that can change its
value
12. Which collection class in Java c. To associate a member with a class rather
provides the best performance for adding than an instance
and removing elements from both ends? d. To prevent a class from being inherited
a. Array List
b. LinkedList
14. Which of the following is true about
c. Vector
d. HashSet Java interfaces?
a. They can contain method
implementations a. To declare variables
b. A class can implement multiple interfaces b. To create objects
c. They can have instance variables c. To serve as the entry point of a Java
d. They can be instantiated directly program
d. To handle exceptions
15. What is the output of
System.out.println(5/2) in Java? 22. Which of the following is NOT a
a. 2.5 primitive data type in Java?
b. 2 a. int
c. 3 b. boolean
d. 2.0 c. String
d. double
16. Which of the following is used to
achieve abstraction in Java? 23. What is the correct way to declare and
a. Final classes initialize an array in Java?
b. Static methods a. int[] numbers = new int[5];
c. Abstract classes and interfaces b. int numbers[] = {1, 2, 3, 4, 5};
d. Private variables c. int numbers[5] = new int[];
d. int[] numbers = (1, 2, 3, 4, 5);
17. What is the purpose of the 'this'
keyword in Java? 24. Which keyword is used to inherit a
a. To refer to the current instance of the class in Java?
class a. implements
b. To call a superclass method b. extends
c. To create a new object c. inherits
d. To access static members of a class d. super

18. Which of the following is NOT a valid 25. What is the purpose of the 'final'
way to create an object in Java? keyword when applied to a variable in
a. MyClass obj = new MyClass(); Java?
b. Object obj = a. To make the variable accessible from
Class.forName("MyClass").newInstance(); other classes
c. MyClass obj = MyClass.create(); b. To prevent the variable from being
d. MyClass obj = (MyClass) modified after initialization
serializedObject; c. To allocate memory for the variable
d. To declare the variable as static
19. What is the purpose of the 'break'
statement in a switch-case construct? 26. Which of the following is true about
a. To exit the entire program Java's garbage collection?
b. To skip the current iteration of a loop a. It must be manually triggered by the
c. To terminate the switch statement programmer
d. To continue to the next case without b. It automatically frees memory occupied
checking the condition by unused objects
c. It only works on primitive data types
20. Which of the following is true about d. It is a feature exclusive to enterprise Java
Java's method overloading? applications
a. It allows methods with the same name but
different return types 27. What is the result of 5 + 7 + "Java" in
b. It requires methods to have different Java?
access modifiers a. "12Java"
c. It allows methods with the same name but b. 12Java
different parameter lists c. "5 + 7Java"
d. It can only be applied to static methods d. Compilation error

21. What is the main purpose of the


'public static void main(String[] args)'
method in Java?
28. Which interface is used to create a
thread in Java?
a. Threadable
b. Runnable
c. Callable
d. Executable

29. What is the purpose of the 'super'


keyword in Java?
a. To call the superclass constructor or
methods
b. To declare a variable as superior
c. To create a new instance of the current
class
d. To access static members of a class

30. Which of the following is NOT a valid


access modifier in Java?
a. public
b. private
c. protected
d. friend

You might also like