Search Header Logo

أسئلة اختيار من متعدد حول مخرجات برامج JavaScript

Authored by Tawgeh El-Agoza

Computers

10th Grade

Used 3+ times

أسئلة اختيار من متعدد حول مخرجات برامج JavaScript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع "Work".

let schedule = "Holiday"; schedule == "Work"; console.log(schedule);

let schedule = "Holiday"; schedule = "Work"; console.log = schedule;

let schedule = "Holiday"; schedule = "Work"; console.log(schedule);

let schedule = "Holiday"; schedule == "Work"; console.log = schedule;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع النص التالي تمامًا: Hello.

let greeting = "Hello."; greeting;

let greeting = "Hello."; console.log(greeting);

let greeting < "Hello."; greeting;

let greeting < "Hello."; console.log(greeting);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع "Discounts are available.".

if (visitNumber > 3) { console.log("Discounts are available."); } else { console.log("Regular price."); } let visitNumber = 5;

let visitNumber = 5; if (visitNumber > 3) { console.log("Discounts are available."); } else { console.log("Regular price."); }

if (visitNumber < 3) { console.log("Discounts are available."); } else { console.log("Regular price."); } let visitNumber = 5;

let visitNumber = 5; if (visitNumber < 3) { console.log("Discounts are available."); } else { console.log("Regular price."); }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع "Oranges and apples cost the same.".

let orangePrice = 150; let applePrice = 150; if (orangePrice == applePrice) { console.log("Oranges and apples cost the same."); }

if (orangePrice > applePrice) { console.log("Oranges and apples cost the same."); } let orangePrice = 150; let applePrice = 150; if (orangePrice == applePrice) { console.log("Oranges and apples cost the same."); }

if (orangePrice == applePrice) { console.log("Oranges and apples cost the same."); } let orangePrice = 150; let applePrice = 150;

let orangePrice = 150; let applePrice = 150; if (orangePrice > applePrice) { console.log("Oranges and apples cost the same."); }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع النص التالي تمامًا: Everyone can enter.

if (peopleNum > venueCapacity) { console.log("Over capacity"); } else if { console.log("Everyone can enter."); } else { console.log("Exactly full"); } let peopleNum = 180; let venueCapacity = 200;

let peopleNum = 180; let venueCapacity = 200; if (peopleNum > venueCapacity) { console.log("Over capacity"); } else if { console.log("Everyone can enter."); } else { console.log("Exactly full"); }

if (peopleNum > venueCapacity) { console.log("Over capacity"); } else if (peopleNum < venueCapacity) { console.log("Everyone can enter."); } else { console.log("Exactly full"); } let peopleNum = 180; let venueCapacity = 200;

let peopleNum = 180; let venueCapacity = 200; if (peopleNum > venueCapacity) { console.log("Over capacity"); } else if (peopleNum < venueCapacity) { console.log("Everyone can enter."); } else { console.log("Exactly full"); }

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع السطرين التاليين بالترتيب: Your savings have increased. 200,000 yen

let savingBalance = "100,000 yen"; savingBalance("200,000 yen"); console.log("Your savings have increased."); console.log(savingBalance);

let savingBalance = "100,000 yen"; console.log("Your savings have increased."); console.log(savingBalance); savingBalance("200,000 yen");

let savingBalance = "100,000 yen"; console.log("Your savings have increased."); console.log(savingBalance); savingBalance = "200,000 yen";

let savingBalance = "100,000 yen"; savingBalance = "200,000 yen"; console.log("Your savings have increased."); console.log(savingBalance);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

اختر البرنامج الذي يطبع Passed

let score = 80; let borderline = 60; if (score < borderline) { console.log("You passed."); }

let score = 80; let borderline = 60; if (score > borderline) { "You passed."; }

let score = 80; let borderline = 60; if (score > borderline) { console.log("You passed."); }

let score = 80; let borderline = 60; if (score < borderline) { "You passed."; }

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?