Holiday Homework
Class 8
CT/ICT
Topics: Fundamentals of Java & Data Visualization in Google Sheets
Part I: Fundamentals of Java
1. Multiple Choice Questions (MCQs):
1. What does OOP mean?
a) Object oriented programming b) Object oriented procedure
c) Object origin program d) Object origin procedure
2. The expression 5 + 2 % 2 gives the output:
a) 5 b) 4 c) 0 d) 6
3. Which of the following is NOT a legal identifier?
a) _roll b) $myage c) 8a d) myclass
4. Binding of data and related functions into one unit is called:
a) Inheritance b) Polymorphism c) Encapsulation d) Data hiding
5. The ability of an object to take different forms is:
a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction
Part II: True or False
1. Java is a platform-independent programming language. (True/False)
2. Reserved words in Java are known as identifiers. (True/False)
3. Java program is compiled into Bytecode. (True/False)
4. The size of the 'int' data type is 64 bits. (True/False)
Part III: Assertion and Reason
Directions: Choose the correct option:
a) Both A and R are true and R is the correct explanation of A.
b) Both A and R are true but R is NOT the correct explanation of A.
c) A is true but R is false.
d) A is false but R is true.
1. Assertion (A): Encapsulation is a way to protect data from external interference.
Reason (R): It binds data and functions together into a single unit.
2. Assertion (A): Java is highly portable.
Reason (R): Java code is compiled into platform-specific machine code.
Part IV: Match the Following
Column A Column B
1. Bytecode A. 32 bits
2. Int data type B. Intermediate code
3. Keywords C. Single unit binding
4. Encapsulation D. Reserved words
Part V: Data Visualization in Google Sheets
1. Which chart type is best for showing trends over time?____________________________________________
2. In Google Sheets, which feature automatically colors a cell based on its value?__________________________
3. What is the symbol used to start every formula in Google Sheets?____________________________________
4. Which chart type represents 'parts of a whole'?__________________________________________________
Part VI: HOTS, Output, and Error Identification
1. HOTS: Why is Java called a "robust" language? Give one reason.
____________________________________________________________________________________________
____________________________________________________________________________________________
_________________________________________________________________________________________
2. Predict the Output:
int g = 3;
[Link](g * 8);
3. Identify the error in the following Java expression:
int x = 5
int y = 10
int z = x + y