Computer Science, asked by mcjuniadiqbal, 7 months ago

DE NOBILI SCHOOL F.R.I

FIRST TERMINAL EXAMINATION 2020

STD IX COMPUTER APPLICATION F.M = 100 Time: 2 hrs

Section A – 40 marks ( Answer ALL Questions )

Q1. i) State two advantages and disadvantages of OOP. [2]

ii) Give one word for the following: [2]

a. The property of decomposing a system into a set of cohesive and loosely coupled modules.

b. The principle of OOP which is used to implement information hiding mechanism.

iii) Define class and object and state how they are related. [2]

iv) Give an example each of 1st, 2nd, 3rd and 4th generation computer languages. [2]

v) State two differences between OOP and procedural programming. [2]

Q2. i) Name two types of JAVA programs. [2]

ii) Give one word for the following: [2]

a. The keyword that converts a variable and its value into a constant.

b. The hierarchy of type conversion followed by Java during implicit conversion.

iii) Define: i. Byte Code ii. Java Virtual Machine [2]

iv) Name the Java compiler and the Java interpreter. [2]

v) State the output of the following code: [2]

System.out.print( “ADD” + 32 + „8‟ ) ;

System.out.println( „A‟ + 10 + “CHEERS” ) ;

Q3. i) Give one word answer for the following: [2]

a. The character set used by JAVA.

b. The operator that allocates memory for the object during runtime.

ii) Sate the default values of the following types: [2]

a. boolean b. float c. char d. String

iii) Differentiate between = and == . ( Give two points.) [2]

iv) Write a single statement to add up the first digit and the last digit of a three digit number stored in the

variable named x and assign the sum to y. [2]

v) Write the Java expression for the following mathematical expression: [2]





( )



vi) Given: char ch = „D‟;

Write a Java statement that will replace the current value of the variable ch by a character which is 5

steps ahead of it. (The statement should implement type casting.) [2]

vii) Arrange the following operators in order of their precedence: [2]

++ ?= = == + ||​

Answers

Answered by rutbabtt
1

Answer:

???+#7#+#7#+#7!#8#8#(#(*!*;; hahahah shut

Similar questions