0% found this document useful (0 votes)
7 views5 pages

Model Question Paper: Multiple Choice Questions

This document is a model question paper for Class IX Computer Applications, consisting of two sections: multiple choice questions and programming tasks. Section A includes 20 multiple choice questions worth 40 marks, while Section B requires students to attempt any four programming questions worth 40 marks. The paper emphasizes Java programming concepts and includes instructions for writing answers and time management.

Uploaded by

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

Model Question Paper: Multiple Choice Questions

This document is a model question paper for Class IX Computer Applications, consisting of two sections: multiple choice questions and programming tasks. Section A includes 20 multiple choice questions worth 40 marks, while Section B requires students to attempt any four programming questions worth 40 marks. The paper emphasizes Java programming concepts and includes instructions for writing answers and time management.

Uploaded by

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

MODEL QUESTION PAPER

CLASS- IX (COMPUTER APPLICATIONS)


------------------------------------------------------------------------------------------------------------------
MM : 80 || TIME : 2 HRS

Answer to this paper must be written on the paper provided


separately.
you will not be allowed to write answer for the first 15 minutes.
This time is to be spent on reading the question paper.
The time given at the head of this paper is the time allowed for
writing the answer.
This paper is divided into two sections.
Attempt all questions from Section A and any four questions from
Section B.
The intended marks for questions or parts of question are given in
SECTION A (Attempt
brackets []. all questions - 40 Marks)
Qs 1 (Multiple choice questions ) [ 1X 20]
1.Java is a both compiled and interpreted language ?
a) True
b) false
c) true
d) None
2. If A=9, B=8 the predict the output of the following :
K= (A ==B)
a)2
b) 3
c) true
d) None of the above
3. Which of the following logical operator has only one argument ?
a) AND Operator
b) OR Operator
c) NOT Operator
d) None of the above
4. == is a _____________operator
a)assignment operator
b)shorthand operator
c)relational operator
d)logical operator
5. Java is a platform independent language
a) false
b) true
c) difficult to predict
d) None
6. Method is a _________________
a) Block of some executable statements .
b) It is a software
c) It is process
d) invoking

Page 1 of 5
7. Parameters which are declared within main function is called
a) Parametrised parameters
b) Actual parameters
c) Formal Parameters
d) None
8. How many value / values is/are returned by a method ?
a) One value
b) Three Values
c) Two values
d) None
9. State the datatype of Y
Y = A>B || !( B<C) ; ( for A=9, B=0, C=-33)
a) long type
b) boolean type
c) int type
d) String type
10. Which one of the following is not a reserved word ?
a) return
b) case
c) switch
d) None
11. Which one is called a multiline comment statement
a) // Hello
b) //*__________*//
c) /*Hello this is my program*/
d) None of the above
12. int X=16; int Y=14;
P= (X++) + (Y --)+ X
a) 7
b) 17
c) 27
d) None
13. int A=9; double B=8.4;
R=(A>B) ? A : B ;
What will be output of R and its datatype?
a) 8 and double type
b) invalid expression
c) 9 and int type
d) None
14. void Add(int x, int y )
{
int z=x+y;
System.out.println (z);
}
void Add( int x,int y) is known as
a) Parameters
b) Function prototype
c) Function Signature
d) Both b & c
Page 2 of 5
15. Variables are called
a) values
b) constants
c) whose value keeps on changing during execution
d) None of the above
16. What is the output of the following?
int x=34, y=44;
p=x>y? x: y;
k=++p;
System.out.println(p);
a) 33
b) 44
c) 34
d) 45
17.What is the output of the following?
System.out.println(9 + ++8);
a) it will compile and execute successfully
b) it will fail to compile
c) it will give output as 18
d) None of the above
18. State syntax error if any of the following
a) Dividing an integer by zero
b) Accessing an element that is out of bounds of an array.
c) Trying to store a value which is incompatible to a certain data type.
d) Missing semicolon
19.James Gosling developed
a) Java Script
b) Java
c) Python
d) C++
20.Logical Expression is always written with the help of __________expression
a) Arithmetical Expression
b) Relational Expression
c) Shorthand Expression
d) None
Qs-2: Short Questions [2x 10=20]
(a) Explain briefly about AND operator with one example.
(b) State the working of a sc.nextDouble() statement .
(c) What is “Type Casting ” in Java ? Explain
(d) Write the output of the following :
l=17, p=15 ;
q= ++ l + (p++) + 45 ;
(e) Discuss about NOT operator .
(f) What do you mean Literals in Java language ?
(g) State the rules for naming a variable in Java .
(h) What do you mean by Primitive data types in Java ?
(i) Discuss about Postfix operation in Java with one example.
(j) Define method signature.

SECTION- B (Attempt any four qs ) (4*10=40 Marks)


The answer in this section should consist of the Program either in BlueJ environment or any
program environment with Java as the base. Each program should be written using
variable description/Mnemonic Codes so that the logic of the program is clearly
depicted.
Flow Charts and Algorithms are not required.

(Each program should contain the variable description) Page 3 of 5


Qs 3 Write a program in Java to input any two non zero integer values for two variables by the
user . If the values are equal then PRINT “VALUES ARE EQUAL “ otherwise calculate their
sum , product and difference. Print the sum, product and the difference in one line in your
monitor .

Sample input : 98 98
Sample output : “ VALUES ARE EQUAL “

Sample input : 9 -9
Sample output : 0 -81 18

Class to be taken as : program3


Qs 4
Write a program in Java to input any three values from the keyboard. Program should compare
the three values to print the second largest of the three values.

Sample input : 8 9 3
Sample output : Second largest value is = 8

Sample input : -98 -78 -65


Sample output : Second largest value is = -78

Class to be taken as : program4

Qs 5 : Input marks in 6 subjects as mentioned here. Calculate their average and print the result
as follows
Subjects
1. English
2. Hindi
3. HCG
4. Mathematics
5. Science
6. Computer Application

If the average marks obtained is 40% and above then Print “ PROMOTED “ else print “
PROMOTION NOT GRANTED “

Class to be taken as : program5

QS.6: Write a program using function void Evaluate(int u, int a ,int t ) to evaluate the
following of the expression
( v = u+at )
Write a main method to create an object of a class and call the above method.

Class to be taken as : program6

Qs 7 Define a method void multiplication(int x, int y ) which will calculate the multiplication
of two values x and y. The values to be passed from main method .

Sample passing values through main () : 8 6


Output : 48

Class name to used as: program7

Page 4 of 5
Qs 8

Assign a three-digit number to a variable to be inputted by the user . Write a program to


extract the digit to print the sum and multiplication of the number.

Sample Input: a= 321

Sample Output: Sum of digits = 3+ 2+ 1 = 6


Product of digits = 3*2*1 = 6

Sample Input: a= 131

Sample Output: Sum of digits = 1+ 3+ 1 = 5


Product of digits = 1*3*1 = 3

==========================END=============================

Page 5 of 5

You might also like