Search Header Logo

Data Types and Variables

Authored by Daniel Adesoji

Professional Development

Professional Development

Used 1+ times

Data Types and Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following can we use to declare a variable in JS?

const

let

var

all of the options

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the following is a primitive data type in JS

object

array

string

function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a variable in JavaScript if it's not assigned any value?

null

undefined

0

NaN

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select all the valid data types in JS

string

boolean

int

char

number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Simi wants to record her age using JS which of the following statement is correct?

let simiAge : 10;

let simiAge = 10;

let simiAge :=10;

let simiAge - 10;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword can we use to check if data type of a value in JS

dataTypeof

typeof

data

type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Abraham Morenike wants to separate her name to first name and last name, what string method can she use?

separate()

section()

split()

divide()

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?