Search Header Logo

chatbot

Authored by Eman Albanna

Computers

6th - 8th Grade

12 Questions

Used 15+ times

chatbot
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to add the image URL

<img src=https://app.bsd.education/resources/cat.png />

<img src="https://app.bsd.education/resources/cat.png" />

<img src="https://app.bsd.education/resources/cat.png">

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One way to make a button work is to add an onclick attribute to call a JavaScript function:

<button onclick="popup()">Click me!<button>

<button onclick="popup()">Click me!</button>

<button onclick="popup">Click me!</button>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JavaScript function is a block of code used to perform a specific action

false

True

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a function ?

function greetUser()

function greetUser() {

}

function "greetUser"() {

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, an alert() is a type of pop-up message box with an input field.

True

false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a prompt ?

prompt(What is 2 + 2?);

prompt("What is 2 + 2?");

prompt("What is 2 + 2?")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

variable is being used to store the user's answer. This allows the program to remember what the user typed.

const q1 = prompt("What is 2 + 2?")

const q1 = prompt(What is 2 + 2?);

const q1 = prompt("What is 2 + 2?");

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?

Discover more resources for Computers