placeholder image to represent content

Computer Programming (.NET Technology) - 12

Quiz by Arreojn Lloyd Manzano

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
19 questions
Show answers
  • Q1

    Which comparison operator checks if one value is greater than or equal to another in JavaScript?

    ==

    <>

    <=

    >=

    20s
  • Q2

    Which operator verifies that two values are not equal in JavaScript?

    ===

    !=

    !==

    ==

    30s
  • Q3

    Which loop runs a block of code as long as a specific condition is true in JavaScript?

    switch loop

    while loop

    do-while loop

    for loop

    30s
  • Q4

    Which statement skips the current iteration in a loop and proceeds to the next?

    continue

    exit

    break

    return

    30s
  • Q5

    Which method creates a new Date object for the current date and time in JavaScript?

    now()

    getDate()

    getCurrentDate()

    new Date()

    30s
  • Q6

    What is the JavaScript method to extract the day of the week from a Date object?

    getDate()

    getWeekDay()

    getDay()

    getWeek()

    30s
  • Q7

    Which method is used to round a number to the nearest integer in JavaScript?

    trunc()

    round()

    ceil()

    floor()

    30s
  • Q8

    Which keyword is used to define a class in JavaScript?

    object

    this

    constructor

    class

    30s
  • Q9

    Which JavaScript method converts a value into a string?

    toString()

    toStr()

    stringify()

    convertToString()

    30s
  • Q10

    What is the output of this JavaScript code: 5 > 3

    CORRECT

    TRUE

    8

    FALSE

    30s
  • Q11

    What is the result of 5 == "5" in JavaScript?

    undefined

    null

    TRUE

    FALSE

    30s
  • Q12

    What is the output when determining if x.length > y.length for x = "Hello" and y = "World"?

    Undefined

    y is longer

    x is longer

    Both strings have equal length

    30s
  • Q13

    What will for (let i = 0; i < 5; i++) { console.log(i); } output?

    1 2 3 4

    1 2 3 4 5

    0 1 2 3

    0 1 2 3 4

    30s
  • Q14

    How does the break statement affect a loop in JavaScript?

    Terminates the loop and moves to the next statement

    Skips to the next iteration

    Restarts the loop

    Throws an exception

    30s
  • Q15

    How can you create a JavaScript Date object for the current date and time?

    Date.getCurrent()

    getCurrentDate()

    Date.now()

    new Date()

    30s

Teachers give this quiz to your class