FINAL - Intro to Programming

FINAL - Intro to Programming

60 Qs

quiz-placeholder

Similar activities

B M - MCQ

B M - MCQ

KG - University

55 Qs

2023-2024 Life Science Final Exam

2023-2024 Life Science Final Exam

6th - 8th Grade

63 Qs

LBS ENTRANCE MOCKTEST

LBS ENTRANCE MOCKTEST

University

64 Qs

CSE Final Review

CSE Final Review

KG - University

58 Qs

RISE Up Retail Industry Fundamentals Practice Test

RISE Up Retail Industry Fundamentals Practice Test

12th Grade

55 Qs

GCP_ACE set A for share

GCP_ACE set A for share

KG - University

60 Qs

SAA-C03 - 04

SAA-C03 - 04

KG - University

63 Qs

Net+ subnetting and Routing

Net+ subnetting and Routing

12th Grade

62 Qs

FINAL - Intro to Programming

FINAL - Intro to Programming

Assessment

Quiz

others

Hard

Created by

Nicole Matthews

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the primary purpose of the return statement in a JavaScript function?
To terminate the program execution
To send a value back from the function
To print output to the console
To declare a new variable

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

In JavaScript, which operator is used to check if two values are not equal?
<>
!=
/=
^=

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What will be the output of the following code? let num = 8; if (num % 2 == 0) { console.log("Even"); } else { console.log("Odd"); }
Odd
8
Even
Error

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

How many iterations will this loop execute? for (let i = 0; i < 10; i += 2)
10
2
4
5

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which of the following is a key characteristic of variables declared with let?
They cannot be modified after declaration
They have global scope only
They can be reassigned new values
They must be initialized with a number

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What will this code output? let name = "Alex"; console.log("Hello, " + name);
Hello, name
Alex, Hello
Hello, Alex
"Hello, " + name

7.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which arithmetic operator has precedence in this expression: 6 + 3 * 2?
Addition
Multiplication
Both are equal
Neither

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?