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

QBank 414 TermWise IX ComputerApplicationGroup III 16012025031700 Abbf174e 6e2a 4340 83f1 8dcb19a12d8e

This document is a question paper for Computer Applications for Class IX at Vivekananda Mission School, Haldia. It consists of two sections: Section A contains multiple-choice questions and short answer questions, while Section B requires students to write Java programs based on given scenarios. The paper assesses knowledge of Java programming concepts, syntax, and practical application through coding tasks.

Uploaded by

wytizilokuz3
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)
38 views5 pages

QBank 414 TermWise IX ComputerApplicationGroup III 16012025031700 Abbf174e 6e2a 4340 83f1 8dcb19a12d8e

This document is a question paper for Computer Applications for Class IX at Vivekananda Mission School, Haldia. It consists of two sections: Section A contains multiple-choice questions and short answer questions, while Section B requires students to write Java programs based on given scenarios. The paper assesses knowledge of Java programming concepts, syntax, and practical application through coding tasks.

Uploaded by

wytizilokuz3
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

VIVEKANANDA MISSION

SCHOOL, HALDIA
IX
Maximum Marks – 100 Subject – Computer Applications (Theory) Time - 2 Hours

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 questions are given in brackets [ ].

SECTION A (40 Marks)


(Attempt all questions from this Section.)
Question 1 [20]
Choose the correct answers to the questions from the given options. (Do not copy the question, write
the correct answer only.)
(i) Name the feature of Java depicted in the following picture.

(a) Data abstraction (b) Polymorphism (c) Inheritance (d) Encapsulation


(ii) Which of the following is not a feature of Java ?
(a) Procedure oriented (b) Robust (c) Platform independent (d) Multithreading

(iii) Identify the character with the lowest ASCII value.


(a) ‘Z’ (b) ‘A’ (c) ‘8’ (d) ‘a’
(iv) A non-primitive data type is:
(a) char (b) boolean (c) float (d) class
(v) The implementation of an operation by a class is termed as:
(a) Entity (b) Method (c) Attribute (d) None of these
(vi) The number of separators or punctuators used in Java programming is:
(a) 7 (b) 8 (c) 9 (d) 10

Page 1 of 5
(vii) Which of the following is/are illegal lines of Java code ?
1. short b = (int) 888.9;
2. boolean x = (byte) 1;
(a) Only 1 (b) Only 2 (c) Both 1 and 2 (d) None of these

(viii) To assign an actual value to a declared variable for the first time is known as:
(a) declaration (b) initialization (c) assignment (d) All of these

(ix) The smallest possible value that can be stored in a variable of byte data type is:
(a) – 215 – 1 (b) – 27 (c) – 231 (d) – 263 – 1
(x) Predict the output:
boolean x = true, y = false;
System.out.println(x && y);
(a) Logical error (b) true (c) false (d) Syntax error

(xi) A special character that can be used in naming identifiers is:


(a) # (Hash) (b) % (Percent) (c) _ (Underscore) (d) Special characters cannot be used
(xii) How is encapsulation implemented in a program ?
(a) Using only variables (b) Using a class (c) Using a function (d) None of these
(xiii) Assertion (A): Data type is used to dictate the JVM the type of data to be stored in a variable.
Reason (R): Specifying data type helps to allocate enough space for the variable to store a value.

(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of
Assertion (A)
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of
Assertion (A)
(c) Assertion (A) is false and Reason (R) is true
(d) Assertion (A) is true and Reason (R) is false
(xiv) The error that is encountered during the execution time of the program is error.
(a) Syntax (b) Runtime (c) Logical (d) All of these
(xv) Predict the output:
System.out.print(20+’A’);
(a) 20A (b) 20+A (c) 85 (d) 2065
(xvi) The program region within which a variable is accessible is known as:
(a) Variable scope (b) Variable area (c) Variable block (d) All of these

(xvii) Which among the following is not a separator ?


(a) ; (Semicolon) (b) , (Comma) (c) . (dot) (d) : (Colon)
(xviii) Assertion (A): Unary minus (–) operator is rarely used by a programmer.
Reason (R): It is used explicitly to represent a negative numeric value.

(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of
Assertion (A)
(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of
Assertion (A)
Page 2 of 5
(c) Assertion (A) is false and Reason (R) is true
(d) Assertion (A) is true and Reason (R) is false

(xix) The size of a variable specified with char data type is:
(a) 2 bytes (b) 16 bytes (c) 32 bits (d) 8 bits
(xx) Predict the output of the following code segment:
int s = 4;
System.out.println(s++ / ++s);
(a) 0.8 (b) 1. 5 (c) 0 (d) None of these

Question 2
Answer the following questions (working must be shown if required):
(i) Differentiate between procedure oriented programming and object oriented programming. [2]
(ii) Mention the role of JVM in Java program execution. [2]
(iii) Write the syntax of conditional assignment operator. [2]
(iv) Evaluate the following expression when a = 2: [2]

a++ + – – a * a – – + a;
(v) Why is an object known as an instance of a class ? [2]
(vi) Write a Java statement to create an object namely ‘smartphone’ from the class ‘Electronic’. [2]
(vii) State the purpose of nextLong() method. [2]
(viii) Mention the difference between 3.0 and 3. [2]
(ix) What do you understand by Logical expression ? Give an example: [2]
(x) Determine the value of variable ‘x’ and ‘y’ from the following code snippet. [2]
char ch = ‘b’;
int x = ch + 10;
char y = (char) x;

SECTION B (60 Marks)


(Answer any four questions from this Section.)
The answers in this section should consist of the programs in either 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.

Question 3
(i) Design a class to input the side of a square field using function argument input method. Find and
display the distance travelled by a person if he takes 8 rounds of field. [7]
Page 3 of 5
(ii) Design a class to accept the marks of a student in seven different subjects in integer form using
Scanner class input method and compute the total marks as well as the percentage of marks of that
student. Display both the results in separate lines (assume the maximum marks as 20 in individual
subjects). [8]

Question 4
(i) Design a class to input a 3-digit positive integer using function argument input method. Now calculate
and print the arithmetic mean of first and last digit of that number. [7]
(ii) Mr. Banerjee purchased a product at a successive discount of 30% and 40%. Design a class to input
the marked price of the product using Scanner class input method and calculate the purchased
amount. Print the result with a proper message. [8]

Question 5
(i) Design a class to accept two fractional numbers using function argument input method. Now calculate
the difference of their integer parts and display the result with a proper message. [7]
(ii) Design a class to accept a 4-digit positive integer using Scanner class input method and find the
reverse of that number. Display the result with an appropriate message. [8]

Question 6
(i) Design a class to accept the ASCII value of two different characters using function argument input
method. Now calculate and print the character with the highest ASCII value with a proper message.
[7]
(ii) Design a class to input two numbers using Scanner class input method and check whether the first
number is even or odd and the second number is divisible by 5 or not (Hint: Use conditional
assignment operator). [8]

Question 7
(i) Design a class to input a number of days (more than 500) using function argument input method,
convert it and display the result in form of years, months and remaining days. [7]
Example:
Input: 796 days
Output: 2 years 2 months 6 days
(ii) Design a class to input details of a product as product code, quantity and price of the product using
Scanner class input method. Calculate the total cost, 20.5% discount on total cost and net price to be
paid after the discount. Finally print all the details related to the product. [8]

Page 4 of 5
Question 8
(i) Design a class to accept two characters using function argument input method and swap those two
characters by using a third variable. Display those two characters before and after the swapping with
proper messages. [7]
(ii) Design a class to input employee code number and monthly basic pay of an employee belongs to a
company using Scanner class input method. Now calculate the following: [8]
(a) Dearness Allowance (DA) as 65% of monthly basic pay
(b) House Rent Allowance (HRA) as 20% of monthly basic pay
(c) Provident Fund (PF) as 8.33% of monthly basic pay
(d) Gross Salary as Basic Pay + DA + HRA
(e) Net Salary as Gross Salary – PF
Print all the information in separate lines with proper messages.

***END OF QUESTION PAPER***

Page 5 of 5

You might also like