Class9 CS PA4 Sample QP 2024-25
Class9 CS PA4 Sample QP 2024-25
a) 0 1 2 b) 1 2 3 c) 0 1 2 3 d)Infinite loop
6. What is an exception in Java? 1
a) An error that occurs during runtime
b) An error that occurs during compilation
c) A warning issued by the compiler
d) A type of loop
7. Which mechanism allows one class to inherit the properties of another 1
class?
a) Function b) Function Overloading c) Inheritance d)
Exception Handling
8. Which method is used to stop an applet? 1
a) init() b) start() c) destroy() d) stop()
9. Which one of the following methods is used to set the text colour to 1
red?
a) Font demo = new Font("Algerian",Font.BOLD,20);
g.setFont(demo);
b) setForeground (Color.red);
c) g.fillRect(130,300,160,100);
(CL-IX/Sample Paper/PA-4-2024-25/CS/Page 1 of 3)
d) g.drawRect(130,150,160,100);
10. Which of the following is incorrect about Narrow AI? 1
a) Narrow AI refers to computer programs that are specifically
designed to do a single task.
b) Narrow AI can deliver efficiency through smart automation and
integration.
c) Narrow AI employs supervised and labelled learning methods.
d) Narrow AI is capable of doing any intellectual work that a human being
can do.
Section-II
11. i. Which category in Scratch contains blocks related movement? 2
ii. What is the event that occurs when the green flag is clicked in
Scratch?
12. What is the best way to show trends over time for a large number of 2
categories?
13. Anil is working in a company and he has to invite all his 2
colleagues(approximately 100) on his marriage anniversary. He
wants to write a personalized letter to all. Which feature of MS-Word
will help him to create all the letters quickly.
14. i. In MS PowerPoint presentations, the designs regulate the 2
layout and formatting for the slide. These are commonly
known as________.
ii. Which is the page setup orientation by default of the slides
in PowerPoint?
15. How worksheet is different from the workbook? 2
16. Predict the output of the given code snippet:- 2
int i = 0;
for(i = 0 ; i < 5; i++){
}
System.out.println(i);
17. How many times loop will execute in the given code snippet:- 2
public class GFG {
int c = 11;
(CL-IX/Sample Paper/PA-4-2024-25/CS/Page 2 of 3)
18. How will you write the formula for the following? - Multiply the 3
value in cell A1 by 10, add the result by 5, and divide it by 2.
19. a. Which of the following command will prevent your sprite to 3
move off the stage ?
i. go to x .......... y ..........
ii. set x to ..........
iii. If On edge, bounce
iv. change x by ..........
ii. Which one of the following File menu options is used to save an
existing MS Excel file at a new location?
(a) New (b) Save & Send (c) Save As (d) Save
25. Write a program in Java that accepts numbers from the user. The 4
program should display the multiples of 3 up to the number specified
by the user using the for loop.
***************************************************
(CL-IX/Sample Paper/PA-4-2024-25/CS/Page 3 of 3)