wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz -3: JavaScript & PHP (AIML)/CC/1st Year

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

.......................is a high-level scripting language that is synchronous with client-side scripting

a)

javaScript

b)

php

c)

oracle

d)

None of these

2.

A ..................... scripting is a light weight programming language

a)

java script

b)

php

c)

oracle

d)

none of these

3.

Client side------does not allow the reading and writing of files.

a)

java script

b)

php

c)

oracle

d)

None of these

4.

In HTML, JavaScript code is inserted between ........... and tags

a)

script

b)

VER

c)

TITLE

d)

None of these

5.

To access an HTML element, JavaScript can use the ........................ method.

a)

document.getElementById(id)

b)

CONSOLE

c)

COUT

d)

none of these

6.

........................ Is used to show the out put or give message

a)

document.write():

b)

printf

c)

COUT

d)

None of these

7.

Which type of JavaScript language is ___

a)

Object-Oriented

b)

Object-Based

c)

Assembly-language

d)

High-level

8.

The "function" and " var" are known as

a)

Keywords

b)

Data types

c)

Declaration statements

d)

Prototypes

9.

What does PHP stand for?

a)

Personal Home Page

b)

Hypertext Preprocessor

c)

Pretext Hypertext Processor

d)

Preprocessor Home Page

10.

What should be the correct syntax to write a PHP code?

a)

< php >

b)

< ? php ?>

c)

<? ?>

d)

</ php />

11.

Who is known as the father of PHP?

a)
  1. Drek Kolkevi

b)
  1. List Barely

c)
  1. Rasmus Lerdrof

d)

Tim Berners-Lee

12.

Variable name in PHP starts with

a)
  1. ! (Exclamation)

b)
  1. $ (Dollar)

c)
  1. & (Ampersand)

d)
  1. # (Hash)

13.

Which of the following is used to display the output in PHP?

a)
  1. echo

b)
  1. write

c)
  1. print

d)
  1. Both echo and print

14.

Which of the following is the correct way of defining a variable in PHP?

a)
  1. $variable name = value;

b)
  1. $variable_name = value;

c)
  1. $variable_name = value

d)
  1. $variable name as value;

15.

Which of the following is used to end a statement in PHP?

a)
  1. ! (exclamation)

b)
  1. ; (semicolon)

c)
  1. / (slash)

d)
  1. . (dot)