Class 9 Cyber Olympiad - Sample question paper 06

Posted by Olympiad Tester on


Q) Examine the following HTML and CSS code:


<html>
<head>
    <style>
        .container {
            width: 80%;
            margin: 0 auto;
            background-color: #f2f2f2;
            padding: 20px;
        }
    </style>
</head>
</html>
    

What styles are applied to an element with the class "container"?

A. 80% width, centered, light gray background, 20px padding

B. 100% width, left-aligned, white background, no padding

C. 60% width, right-aligned, dark gray background, 10px padding

D. 50% width, centered, transparent background, 15px padding

Answer: A. 80% width, centered, light gray background, 20px padding

Explanation: The CSS code styles an element with the class "container" by giving it 80% width, centering it, applying a light gray background, and adding 20px of padding.

Q) Consider the following JavaScript code:


function reverseString(str) {
    return str.split('').reverse().join('');
}

var result = reverseString("Hello, World!");
console.log(result);
    

What will be the output of the JavaScript code?

A. "!dlroW ,olleH"

B. "Hello, World!"

C. "dlroW ,olleH!"

D. "!dlroW ,olleH!"

Answer: A. "!dlroW ,olleH"

Explanation: The JavaScript code defines a function reverseString that reverses the characters in a string. When applied to the string "Hello, World!", it produces the output "!dlroW ,olleH".

Q) Which of the following is a correct order of steps to change the number of default sheets in a workbook in MS-Excel 2010?

A. File tab → Options → Excel Options window will appear → Proofing → When creating new workbooks → enter the desired number in "Include this many sheets" field → OK

B. File tab → Options → Excel Options window will appear → General → When creating new workbooks → enter the desired number in "Include this many sheets" field → OK

C. Home tab → Options → Excel Options window will appear → Advanced → When creating new workbooks → enter the desired number in "Include this many sheets" field → OK

D. File tab → properties → Excel Options window will appear → Formulas → When creating new workbooks → Enter the desired number in "Include this many sheets" field → OK

Answer: B. File tab → Options → Excel Options window will appear → General → When creating new workbooks → enter the desired number in "Include this many sheets" field → OK

Q) Which of the following viruses has been designed for Android smartphones to intercept incoming and outgoing messages by taking over the server of an Android device?

A. De-Andro

B. Dendroid

C. Denandroid

D. Dragon

Answer: B. Dendroid

Q) Analyze the following HTML and JavaScript code:


<html>
<head>
    <script>
        function calculateSum(a, b) {
            return a + b;
        }

        var result = calculateSum(3, 7);
        console.log(result);
    </script>
</head>
</html>
    

What will be the output of the JavaScript code?

A. 10

B. 37

C. "37"

D. undefined

Answer: A. 10

Explanation: The JavaScript code defines a function calculateSum that adds two numbers. It then calls the function with arguments 3 and 7, resulting in the output 10.

Q) Consider the following CSS code:


.button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
    

What styles are applied to an element with the class "button"?

A. Green background, white text, 10px padding, rounded corners, no border

B. Red background, black text, 15px padding, square corners, border

C. Blue background, yellow text, 5px padding, no border, rounded corners

D. Orange background, white text, 12px padding, rounded corners, dashed border

Answer: A. Green background, white text, 10px padding, rounded corners, no border

Explanation: The CSS code styles an element with the class "button" by giving it a green background, white text, 10px padding, rounded corners, and no border.

Q) Which of the following semiconductor memories contains programs to control the peripherals and to load the operating system into the RAM in general-purpose computers where microprocessor is used as CPU?

A. Hard disk

B. ROM

C. EEPROM

D. DRAM

Answer: B. ROM

Explanation: Read-Only Memory (ROM) in semiconductor memories contains programs to control peripherals and load the operating system into RAM in general-purpose computers where a microprocessor is used as the CPU.

Q) Which of the following attributes does not merge the cells of a table in HTML?

A. Cellspacing

B. Rowspan

C. Colspan

D. Both A and B

Answer: A. Cellspacing

Explanation: `Cellspacing` in HTML is used to define the space between the cells of a table. `Rowspan` and `Colspan` attributes are used to merge cells.

Q) Which of the following statements is INCORRECT about the mesh topology?

A. In mesh topology devices are connected with many redundant interconnections between all the network nodes.

B. Full mesh and partial mesh topology are its two types.

C. Partial mesh topology is very expensive to implement as compared to full mesh topology.

D. Full mesh topology does not get affected when one node goes down.

Answer: C. Partial mesh topology is very expensive to implement as compared to full mesh topology.

Explanation: This statement is incorrect. In reality, full mesh topology is more expensive to implement than partial mesh topology because the number of connections in a full mesh grows quadratically with the number of devices, making it cost-prohibitive for larger networks.

Q) In Visual Basic, if the MaxLength property of a TextBox control is set to 0 (zero), then how many characters can be entered in it?

A. 0

B. 1

C. Any number of characters

D. Upto 10 characters

Answer: C. Any number of characters

Explanation: If the MaxLength property of a TextBox control is set to 0, it means there is no limit on the number of characters that can be entered. Users can input any number of characters into the TextBox.

Q) RFID stands for Radio-Frequency Identification, which is a small electronic device that consists of a small chip and an antenna to identify objects. Which of the following objects can be identified using RFID tags?

A. Books in a library

B. Vehicles passing through a toll gate

C. Animals in reserve forests

D. All of these

Answer: D. All of these

Explanation: RFID tags can be used to identify various objects, including books in a library, vehicles passing through a toll gate, and animals in reserve forests. RFID technology is versatile and finds applications in different domains.

Q) What would be the output of the given Visual Basic code?

        
Print Right("National Cyber Olympiad", 5)
        
    

A. mpiad

B. daipm

C. Natio

D. oitaN

Answer: A. mpiad

Explanation: The `Right` function in Visual Basic extracts the specified number of characters from the right side of a string. In this case, it extracts the last 5 characters of "National Cyber Olympiad," resulting in "mpiad."

Q) Which of the following statements is INCORRECT about LCD?

A. It is light weighted and consumes low power.

B. It provides limited view angle i.e. viewing from a side rather than from the front gives unclear image.

C. It distorts the pictures as its screen is flat.

D. It is fabricated with three primary color filters: Red, Blue and Green in close manner to get color.

Answer: C. It distorts the pictures as its screen is flat.

Explanation: LCD screens, though providing several advantages, can distort images due to the flat nature of their screens.

Q) Which of the following is a 48-bit or 64-bit physical address of a node on a network and is generally given to a network adapter or card when it is manufactured?

A. IP

B. URL

C. MAC

D. TCP

Answer: C. MAC

Explanation: MAC (Media Access Control) address is a hardware address that uniquely identifies each node on a network.

Q) In HTML, if you want to include an image in a data cell of a table, then you should enclose the <img> tag inside the ____ tag.

A. <ti>

B. <tc>

C. <td>

D. <dc>

Answer: C. <td>

Explanation: To include an image in a data cell of an HTML table, the <img> tag should be enclosed inside the <td> (table data) tag.


← Older Post Newer Post →

POST YOUR COMMENT

    1 out of ...
    Sale

    Unavailable

    Sold Out