JavaScript Input and Variables  Quiz

JavaScript Input and Variables Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

Temas de las exposiciones

Temas de las exposiciones

7th - 10th Grade

20 Qs

Khối 11 KT 15p

Khối 11 KT 15p

11th Grade

15 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Chapter 3: Storage devices and media (Part 2):

Chapter 3: Storage devices and media (Part 2):

10th - 11th Grade

15 Qs

JavaScript Input and Variables  Quiz

JavaScript Input and Variables Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Guillermo Moreno

Used 98+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the proper function to call to print to the screen?

write

println

PRINT

post

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

How will the output look in the following programs?

The code snippet will print Hello World on a single line.

The code snippet will print Hello on the first line and World on the second line.

The code snippet will print an error because of the extra space after the letter o.

The code snippet requires only one println.

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What keyword do you need to use to define a variable in JavaScript?

println

var

float

int

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

A naming convention where the first letter is lower case, and each subsequent start of a word is upper case

capitalization

variable

upperCase

lowerCamelCase

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output to the console to the following JavaScript program?

1

2

3

1

2

.3

1

2

.03

1

2

0.03

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What are the different variable types that can be used in Javascript?

Booleans, Numbers, Strings

Booleans, Int, Float

Strings, Booleans, Int

Strings, Int, Doubles

7.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

How would you create a variable named myPet and give it the value “Your Name”?

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?