Mock Test Platform

00:00:00

Question 1: JavaScript Algorithm

Easy 10 points

Write a function that takes an array of numbers and returns the sum of all even numbers in the array.

Example:

Input: [1, 2, 3, 4, 5, 6]
Output: 12 (2 + 4 + 6)

Requirements:

  • Function should be named sumEvenNumbers
  • Handle empty arrays (return 0)
  • Handle arrays with no even numbers (return 0)

Code Editor

Output

Run your code to see the output...

Test Monitoring

Tab Switches

0

Copy/Paste & Screenshots

0

Test Status

Not Started

Fullscreen Mode

Inactive

Webcam Status

Inactive

Tab Recording

Inactive

Snapshots Taken

0

Mouse Activity

Tracking

Idle Time

0s

Activity Log

Activity will be logged here during the test...

Warning!

Suspicious activity detected!

Webcam Access Required

This test requires webcam access for proctoring purposes. Your camera will take periodic snapshots during the test to ensure integrity.

Tab Recording Required

This test requires recording of the current browser tab for monitoring purposes. Only this test tab will be recorded, not your entire screen.