FINAL - Intro to Programming

FINAL - Intro to Programming

60 Qs

quiz-placeholder

Similar activities

Baseball Test

Baseball Test

8th Grade

59 Qs

Unit 2 - American Revolution & the New Nation Review

Unit 2 - American Revolution & the New Nation Review

12th Grade

57 Qs

Honors World History Review

Honors World History Review

9th Grade

56 Qs

MAKE UP PART 2B  REVIEW SEM 1

MAKE UP PART 2B REVIEW SEM 1

11th Grade

60 Qs

Workshop Safety Exam

Workshop Safety Exam

9th - 12th Grade

56 Qs

Mid Term Exam

Mid Term Exam

8th Grade

60 Qs

AMT 3 Midterm Reviewer

AMT 3 Midterm Reviewer

KG - University

55 Qs

FINAL - Intro to Programming

FINAL - Intro to Programming

Assessment

Quiz

others

Practice Problem

Hard

Created by

Nicole Matthews

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?