Chapter 4 : JavaScript Introduction

Chapter 4 : JavaScript Introduction

Professional Development

33 Qs

quiz-placeholder

Similar activities

Python Basics 2

Python Basics 2

5th Grade - Professional Development

36 Qs

3D1X1 CDC Set 1 Vl 1 Unit 2 Review

3D1X1 CDC Set 1 Vl 1 Unit 2 Review

Professional Development

28 Qs

ISTQB Foundation - Module 1 - Quizz

ISTQB Foundation - Module 1 - Quizz

Professional Development

28 Qs

Christmas Showdown 2023

Christmas Showdown 2023

Professional Development

28 Qs

Cloud Computing-Model Exam-II-PART-A

Cloud Computing-Model Exam-II-PART-A

Professional Development

30 Qs

HISTORY OF COMPUTERS AND COMPUTER BASICS

HISTORY OF COMPUTERS AND COMPUTER BASICS

3rd Grade - Professional Development

32 Qs

Java Fundamentals

Java Fundamentals

Professional Development

28 Qs

QUIZ 'PRASHNA-CHINHA'

QUIZ 'PRASHNA-CHINHA'

Professional Development

28 Qs

Chapter 4 : JavaScript Introduction

Chapter 4 : JavaScript Introduction

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

JX C

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...

33 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What is Javascript mainly used for?

To define the content of Webpages

To determine the behaviour of Webpages

To specify the layout of Webpages

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Javascript is a(an) ...

language used to enhance HTML pages

language primarily used in creating Mobile Apps

scripting language, primarily used on the Web

an interpreted language and doesn't need to be compiled.

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Where can you place your Javascript?

Anywhere inside a HTML page

In an external file which ends with ".txt"

In an external file which ends with ".js"

Inside the <script> tags inside the HTML page

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following paragraph element.


<p id="apple"></p>


Which code will you use to change its contents?

document.getElementById("apple").value = "Hello";

document.getElementById("banana").value = "Hello";

document.getElementById("banana").innerHTML = "Hello";

document.getElementById("apple").innerHTML = "Hello";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following HTML code for a paragraph that will work with following Javascript and display "Displayed"


document.getElementById("banana").innerHTML = "Displayed";

<p id="banana">Not Displayed</p>

<p id="apple">Displayed</p>

<div id="banana">Displayed</div>

<div id="apple">Displayed</div>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these commands will write "Hello" directly into a Webpage

console.log("Hello");

window.alert("Hello");

document.write("Hello");

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these commands will write "Hello" directly into the console?

console.log("Hello");

window.alert("Hello");

document.write("Hello");

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?