JavaScript (control flow)

JavaScript (control flow)

8th Grade

15 Qs

quiz-placeholder

Similar activities

Python - тест

Python - тест

1st - 12th Grade

15 Qs

Acceptable Use Policy

Acceptable Use Policy

6th - 9th Grade

16 Qs

Sistemas Operativos

Sistemas Operativos

7th - 12th Grade

10 Qs

Y7 - HT1 - Midterm - Software Basics (New)

Y7 - HT1 - Midterm - Software Basics (New)

6th Grade - University

20 Qs

Controlling Systems

Controlling Systems

5th - 8th Grade

15 Qs

Flocabulary - Oversharing

Flocabulary - Oversharing

7th - 8th Grade

20 Qs

Technology Innovations

Technology Innovations

5th - 12th Grade

20 Qs

Computer Networks - Year 7

Computer Networks - Year 7

7th - 8th Grade

19 Qs

JavaScript (control flow)

JavaScript (control flow)

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Ēvalds Ābelskalns

Used 8+ 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

30 sec • 1 pt

Vai šis "for loop" pieraksts ir uzrakstīts pareizi?

for (i = 0; i < 50; i = i + 1){

z = z + y;

}

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Ieraksti mainīgā a beigu vērtību

let a = 10;

if( a < 9 ) {

  a = 15;

}

   else {

  a = 25;

}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vai šis "for loops" ir pierakstīts pareizi?

for (i = 0, i < x; i = i + 2 {    

a = a + i;

}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pildini doto skripta fragmentu tā, lai paziņojums „Pienākas atlaide” tiktu izvadīts tikai tajā gadījumā, ja iegādājamo preču skaits (mainīgais p) ir lielāks par 3.

var p = Number(prompt("Ievadi preču skaitu"));

if ( ... ) {    alert("Pienākas atlaide");}

p > 3 

p = 3

p > 1

p => 3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kādu klaviatūras kombināciju jāveic lai daļu koda pārveidotu par komentāru?

Alt + /

Alt + P

Ctrl + /

Alt + Shift + F

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kas izvadīsies consolā ierakstot šādu kodu?

const names = ['Anna', 'Pēteris', 'Jānis'];

for(let i = 0; i < names.length; i++){

console.log(i);

}

Anna

Pēteris

Jānis

1

2

3

error

0

1

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vai koda daļa...

let html = `<div>${names[i]}</div>`;

...ir pareizi uzrakstīta?

Visticamāk, Jā

Visticamāk, Nē

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?