Quiz3

Quiz3

1st - 3rd Grade

15 Qs

quiz-placeholder

Similar activities

KS Bedah UU Cipta Kerja Jan 22

KS Bedah UU Cipta Kerja Jan 22

KG - Professional Development

10 Qs

ANC, INC & PNC

ANC, INC & PNC

3rd Grade

10 Qs

Empowerment

Empowerment

1st - 3rd Grade

10 Qs

SICANTIK Cloud

SICANTIK Cloud

1st - 4th Grade

18 Qs

UJI COBA SOAL SNEGA SCOUT CHALLENGE 2023

UJI COBA SOAL SNEGA SCOUT CHALLENGE 2023

1st Grade

20 Qs

Java Script Certification Functions, Debugging & Loops

Java Script Certification Functions, Debugging & Loops

1st - 3rd Grade

20 Qs

Daily activities

Daily activities

3rd Grade

17 Qs

Single View Мэдлэг бататгах quiz

Single View Мэдлэг бататгах quiz

1st Grade

15 Qs

Quiz3

Quiz3

Assessment

Quiz

Professional Development

1st - 3rd Grade

Practice Problem

Hard

Created by

Anantha edupuganti

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following represents control flow statements in js ?

simple if

if else

else if ladder

switch

simple if

if else

nested if

if-elif-else

simple if

if-elif-else

switch

None of the above

2.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of these belong to looping statements in JS ?

for

for in

for of

for else

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Find the output of the following code snippet?

<script>

var a=[1.1,2,5,'gec',99.5,'it'];

for(var x in a)

document.write(x+" "); //output1

for(var x of a)

document.write(x+" "); //output2

</script>

1.1 2 5 gec 99.5 it

0 1 2 3 4 5

1.1 2 5 gec 99.5 it

0 1 1 2 3 4

0 1 2 3 4 5

1.1 2 5 gec 99.5 it

0 1 2 3 4 5

1,1 2 5 gec 99.5 it

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which keyword is used to create functions in Javascript ?

def

define

func

function

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

 

Guess the Output for the following code snippet ?

<html>

<script>

function reverse(x){

var s=0;

while(x>0){

s=s*10+x%10;

x=x/10;

}

return s;

}

document.write("Reverse is: "+reverse(123));

</script>

</html>

Reverse is: NaN

Reverse is: 321.000

Reverse is: Infinity

Reverse is: undefined

Reverse is: 321

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is abbrevation of DOM ?

Domain Object Model

Document Object Model

Discriptive Oreintation Model

Discriptive Object Model

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

<html>

<script>

var x=" 68.3";

var b=Number(x);

var a=parseInt(x);

document.write(b+" ");

document.write(a);

</script>

</html>

Predict the Output ?

68 68.3

68.3 68

68 68

68.3 68.3

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?