Class 9 Cyber Olympiad - Sample question paper 09

Posted by Olympiad Tester on


Q) In Python, what will be the output of the following code?


numbers = [1, 2, 3, 4, 5]
squared_numbers = [num ** 2 for num in numbers if num % 2 == 0]
print(squared_numbers)
    

A. [1, 4, 9, 16, 25]

B. [4, 16]

C. [2, 4]

D. [1, 9, 25]

Answer: B. [4, 16]

Explanation: The code creates a list of squared numbers for even numbers in the original list [1, 2, 3, 4, 5].

Q) Which of the following CSS properties is used to make text bold?

A. text-style: bold;

B. font-weight: bold;

C. text-decoration: bold;

D. font-style: bold;

Answer: B. font-weight: bold;

Explanation: The 'font-weight' property is used in CSS to set the weight or thickness of the font. Setting it to 'bold' makes the text bold.

Q) What is the output of the following Java code snippet?


public class StringConcatenation {
    public static void main(String[] args) {
        String str1 = "Hello";
        String str2 = "World";
        int num = 2022;

        String result = str1 + str2 + num;
        System.out.println(result);
    }
}
    

A. HelloWorld2022

B. Hello World 2022

C. Hello2022World

D. Compile-time error

Answer: A. HelloWorld2022

Explanation: The code concatenates the strings "Hello" and "World" along with the integer 2022, resulting in "HelloWorld2022".

Q) What is the purpose of the 'finally' block in a Java exception handling?

A. To catch and handle exceptions

B. To specify the code that should be executed regardless of whether an exception is thrown or not

C. To define a block of code that may throw an exception

D. To specify the conditions under which an exception should be caught

Answer: B. To specify the code that should be executed regardless of whether an exception is thrown or not

Explanation: The 'finally' block contains code that will be executed no matter what, whether an exception is thrown or not. It is commonly used for cleanup activities.

Q) What is the result of the following JavaScript code when executed in a browser console?


let num1 = 5;
let num2 = 2;
let result = num1 * num2 + 10;
console.log(result);
    

A. 20

B. 15

C. 12

D. 30

Answer: D. 30

Explanation: The code multiplies num1 and num2, adds 10, and prints the result, which is 30.

Q) Which type of animation involves creating a series of images or frames using physical objects and capturing each frame individually?

A. Cel animation

B. Claymation

C. Pixelation

D. Zoetrope animation

Answer: B. Claymation

Explanation: Claymation is a stop-motion animation technique using clay or similar materials to create frames.

Q) A type of malware program that alters your computer's browser settings so that you are redirected to websites that you didn’t intend to visit is called ______.

A. Hacker

B. Cracker

C. Highjackware

D. Ransomware

Answer: C. Highjackware

Explanation: Highjackware is a type of malware that hijacks or alters browser settings, redirecting users to unintended websites.

Q) Autosum command can be accessed from ______ tab in MS-Excel 2010.

A. Home

B. Formulas

C. Both (A) and (B)

D. Data

Answer: B. Formulas

Explanation: The Autosum command in MS-Excel 2010 can be accessed from the Formulas tab.

Q) What is the output of the program if the value of n is assigned to 5 in Visual Basic?


Dim fact As Double
prod = 1
Do While n > 0
    prod = prod * n
    n = n - 1
Loop
display.Text = prod
    

A. 120

B. 20

C. 60

D. 40

Answer: A. 120

Explanation: The program calculates the factorial of the assigned value of 'n', and for n = 5, the output would be 120.

Q) Which animation technique involves creating the illusion of movement by displaying a series of individual drawings or frames in sequence?

A. Flip-book animation

B. Stop-motion animation

C. Rotoscoping animation

D. Live-action animation

Answer: A. Flip-book animation

Explanation: Flip-book animation is a traditional technique where a series of drawings are flipped rapidly to create the illusion of motion.

Q) In Flash animation (CS6), which method is best for creating movement, size changes, and rotation effects using symbols?

A. Motion tween

B. Shape tween

C. Masking

D. Layering

Answer: A. Motion tween

Explanation: Motion tween in Flash animation (CS6) is ideal for creating movement, size changes, rotation, fades, and color effects using symbols.

Q) What can be performed on an action button in MS-PowerPoint 2010?

A. Mouse click

B. Mouse over

C. Both (A) and (B)

D. Mouse out

Answer: C. Both (A) and (B)

Explanation: Action buttons in MS-PowerPoint 2010 can perform actions on mouse click and mouse over.

Q) What actions can be performed on an action button after inserting it into your slide in MS-PowerPoint 2010?

A. Mouse click

B. Mouse over

C. Both (A) and (B)

D. Mouse out

Answer: C. Both (A) and (B)

Explanation: Action buttons in MS-PowerPoint 2010 can be configured to perform actions on both mouse click and mouse over events.

Q) A _____ is a type of Flash-generated animation in CS6 that requires the use of symbols and is best for creating movement, size, and rotation changes, fades, and color effects.

A. Motion tween

B. Shape tween

C. Masking

D. Layering

Answer: A. Motion tween

Explanation: Motion tween is a Flash-generated animation in CS6 that uses symbols and is suitable for creating various effects like movement, size changes, rotation, fades, and color effects.

Q) The twisting of wires in Twisted-pair cable protects it from signal interferences called ______.

A. Noise

B. Crosstalk

C. Attenuation

D. Distortion

Answer: B. Crosstalk

Explanation: The twisting of wires in a Twisted-pair cable helps protect it from signal interferences, particularly crosstalk.

Q) This animation method has been used in movies such as “Lord of the Rings” to bring a fictional character to life.

A. Flip-book animation

B. Stop-motion animation

C. Rotoscoping animation

D. Live-action animation

Answer: D. Live-action animation

Explanation: Live-action animation involves integrating animated elements with live-action footage. It has been used in movies like "Lord of the Rings" to bring fictional characters to life.


← Older Post Newer Post →

POST YOUR COMMENT

    1 out of ...
    Sale

    Unavailable

    Sold Out