Search Header Logo

Super 15 Batch 3 quiz 2

Authored by Gnaneshwar Reddy

Other

University

Used 2+ times

Super 15 Batch 3 quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem Statement: HTML Structure

Which of the following is the correct structure for a basic HTML5 document?

  • A)

html


<html>

  <head></head>

  <body></body>

</html>

  • B)

html


<!DOCTYPE html>

<html>

  <body></body>

</html>

  • C)

html


<!DOCTYPE html>

<html>

  <head></head>

  <body></body>

</html>

  • D)

html


<html>

  <head>

    <meta charset="utf-8">

  </head>

</html>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem Statement: CSS Selectors

Which CSS selector is used to target elements with the class "example"?

  • A) .example

  • B) #example

  • C) example

  • D) *example

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Problem Statement: JavaScript Arrays

What will the following JavaScript code output?

js


let arr = [1, 2, 3];

arr.push(4);

console.log(arr.length);

  • A) 3

  • B) 4

  • C) 5

  • D) undefined

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Problem Statement: Hoisting

What will be the output of this JavaScript code?

js


console.log(a);

var a = 10;

  • A) undefined

  • B) 10

  • C) null

  • D) ReferenceError

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem Statement: CSS Flexbox

Which CSS property is used to align flex items along the cross-axis?

  • A) justify-content

  • B) align-content

  • C) align-items

  • D) align-self

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem Statement: JavaScript Functions

What is the result of the following code?

js


function sayHello() {

  return 'Hello';

}

console.log(typeof sayHello());

  • A) string

  • B) function

  • C) object

D) undefined

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Problem Statement: DOM Manipulation

Which of the following methods is used to remove an element from the DOM?

  • A) removeElement()

  • B) deleteElement()

  • C) removeChild()

  • D) remove()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?