Ass2-Quiz2-Programming

Ass2-Quiz2-Programming

11th Grade

31 Qs

quiz-placeholder

Similar activities

ÔN TẬP LẦN 1 CTC T1

ÔN TẬP LẦN 1 CTC T1

11th Grade

28 Qs

Adobe Illustrator Quiz Review

Adobe Illustrator Quiz Review

9th - 12th Grade

27 Qs

Tin 4 - Ôn tập học kỳ 2

Tin 4 - Ôn tập học kỳ 2

3rd Grade - University

30 Qs

BANCO DE DADOS

BANCO DE DADOS

10th - 12th Grade

26 Qs

SOFTWARE MICROSOFT OFFICE POWERPOINT

SOFTWARE MICROSOFT OFFICE POWERPOINT

6th - 11th Grade

28 Qs

CS1 Systems & Networks Review

CS1 Systems & Networks Review

9th - 12th Grade

28 Qs

Code.org Unit 7

Code.org Unit 7

9th - 12th Grade

26 Qs

Microsoft Word 2016 Advanced

Microsoft Word 2016 Advanced

9th - 12th Grade

26 Qs

Ass2-Quiz2-Programming

Ass2-Quiz2-Programming

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

zina aldolymi

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

<!DOCTYPE html>

<html>

<body>

<script>

var x = "5";

var y = 6;

var z = x + y;

document.write(x + "<br>");

document.write(y + "<br>");

document.write(z + "<br>");

</script>

</body>

</html>


Guess the output of the following code

5 6 10

None of These

5 6 56

5 6 11

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

<!DOCTYPE html>

<html>

<body>

<script>

var num1 = 1;

var num2 = 1;

var num3 = "1" + num1 + num2;

document.write(num1 + "<br>");

document.write(num2 + "<br>");

document.write(num3 + "<br>");

</script>

</body>

</html>


Guess the output of the following code.

1 1 3

1 1 111

1 1 12

None of these

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

<html>

<body>

<script>

var x = 12.45;

var y = 1;

var z = '8' + x + y;

document.write(z + "<br>");

</script>

</body>

</html>


The value of Z is

813.451

812.451

21.450

21.451

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Variable declared without a value will have the value ______________

None of these

undefined

0

null

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is it necessary to use "var" keyword while declaring variable.

Yes

No

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

When you assign a text value to a variable, we put text value in the pair of _________.Select appropriate option(s).

Square Bracket

Double Quote

None of these

Single Quote

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Non Initialized Variable have value "undefined", What value be printed in following case


var name="Cat";

var name;

null

Error

Cat

undefined

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

Already have an account?