wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

untitled

Total questions: 99

Worksheet time: 52mins

Name
Class
Date
1.

Computer that requests the resources or data from other computer is called as ________ computer.

a)

Client

b)

Server

2.

Software which allows user to view the webpage is called as __________.

a)

Internet Browser

b)

Interpreter

c)

Operating System

d)

Website

3.

Which of the following website is used to search other website by typing a keyword ?

a)

Router

b)

Search Engine

c)

None of these

d)

Social Networks

4.

Which of the following is valid Website Address ?

a)

ww#.c4learn.com

b)

c4learn@.com

c)

www.c4learn.com

d)

www.c4learn

5.

Which of the following is called as protocol in the URL ?


http://www.c4learn.com

a)

c4learn

b)

.com

c)

http

d)

www

6.

Whenever user opens any website then main page is called as ________.

a)

Backend Page

b)

None of these

c)

Dead End

d)

Home Page

7.

Which vocabulary is different from them?

a)

Internet

b)

Linux

c)

Unix

d)

Window

8.

The process of transferring files from a computer on the Internet to your computer is called

a)

Uploading

b)

Forwarding

c)

FTP

d)

Downloading

9.

Verification of a login name and password is known as:

a)

configuration

b)

accessibility

c)

authentication

d)

logging in

10.

Moving from one website to another is called :

a)

Downloading

b)

Browsing

c)

Uploading

d)

Attachment

11.

A computer on internet are identified by :

a)

e-mail address

b)

street address

c)

IP address

d)

None of the above

12.

Internet explorer falls under :

a)

Operating System

b)

Compiler

c)

Browser

d)

IP address

13.

The Internet was originally a project of which agency?

a)

ARPA

b)

NSF

c)

NSA

d)

None of these

14.

Which one of the following is not a search engine?

a)

Bing

b)

Google

c)

Yahoo

d)

Windows

15.

Internet Explorer is used for :

a)

Viewing Movie

b)

Listning Music

c)

Viewing Web Pages

d)

Drawing

16.

PHP is an acronym for ______.

a)
  1. Pretext Hypertext Preprocessor

b)
  1. PHP: Hypertext Preprocessor

c)
  1. Personal Home Processor

d)
  1. Prototype Hypertext Preprocessor

17.

Variable name in PHP starts with

a)
  1. ! (Exclamation)

b)
  1. # (Hash)

c)
  1. $ (Dollar)

d)
  1. & (Ampersand)

18.

Which is INVALID variable name in PHP?

a)
  1. age

b)
  1. _age

c)
  1. PersonAge

d)

1age

19.

Which of the following is a correct way to add single line comment in PHP?

a)
  1. //This is comment

b)
  1. /* This is comment */

c)

<!-- This is comment -->

d)
  1. & This is comment &

20.

Which of the following is used for concatenation in PHP?

a)
  1. + (plus)

b)
  1. * (Asterisk)

c)
  1. ; (semicolon)

d)
  1. . (dot)

21.

What will be the output of the following PHP code?

a)

Result 5

b)

Result $x

c)

Result x = 5

d)

Error

22.

What is the purpose of the echo statement in PHP?

a)

To comment code

b)

To perform arithmetic operations

c)

To output strings or variables to the browser

d)

To declare variables

23.

Find the value for the following expression, given that $y = 20; $z = 3;

$y + $z % 2;

a)

1

b)

20.5

c)

21

d)

0

24.

Find the value for each of the following expression, given that $x = 30; $y = 20; $z = 3;

$y / 2 * $z - $x;

a)

0

b)

1

c)

2

d)

3

25.

Look at the following code and determine what will be displayed in the browser?

a)

What is her age? <br>She is $age years old

b)

What is her age?

She is $age years old

c)

What is her age? She is 20 years old

d)

What is her age?

She is 20 years old

26.

The following folder contains an HTML document called form_claim.html.

 

c:\xampp\htdocs\assignment

 

Write the URL to display form_claim.html in your browser on the same machine running XAMPP.

a)

localhost/htdocs/assignment/form_claim.html

b)

localhost/assignment/form_claim.html

c)

xampp/htdocs/assignment/form_claim.html

d)

xampp/assignment/form_claim.html

27.

Determine True/False for the following expressions where $x = 1.

($x * 10 < $x * 5 + 5)

a)

True

b)

False

28.

Which of the following BEST describes a repetition control structure?

a)

Executes statements only once.

b)

Executes statements when the condition is false.

c)

Executes statements more than once.

d)

Executes statements randomly.

29.

In a while loop, when is the loop body executed?

a)

When the loop condition is false.

b)

When the loop condition is true.

c)

Before the loop condition is evaluated.

d)

After the loop condition becomes false.

30.

What will be the output of the following code?

a)

HelloHelloHelloHello

b)

HelloHelloHello

c)

Hello Hello Hello

d)

Hello Hello Hello Hello

31.

In a for loop, what is the purpose of the initialization section?

a)

To specify the condition for the loop to run.

b)

To set the starting value of the loop.

c)

To update the loop.

d)

To define the statements to be executed.

32.

Which of the following statements correctly defines the condition in a for loop?

a)

The condition must be true for the loop to start.

b)

The condition is checked after each iteration.

c)

The condition is optional in a for loop.

d)

The condition is checked only once.

33.

What will be the output of the following code?

a)

10 9 8 7 6 5

b)

10 9 8 7 6

c)

10 9 8 7

d)

10 9 8

34.

Given the code, what is the value of $x after the loop executes?

a)

2

b)

3

c)

4

d)

5

35.

Which of the following is TRUE about a while loop?

a)

It always runs at least once.

b)

It may not run if the condition is false initially.

c)

It runs indefinitely.

d)

It does not require a condition.

36.

In a loop, what will happen if the update step is omitted?

a)

The loop will run indefinitely.

b)

The loop will show an error.

c)

The loop will not executes.

d)

The loop will run once.

37.

Which of the following is the correct syntax for a for loop in PHP?

a)

for (condition; initialization; updating)

b)

for (initialization; condition; updating)

c)

for (initialization, condition, updating)

d)

for (condition; initialization; updating);

38.

How many loops are there in PHP?

a)

1

b)

2

c)

3

d)

4

39.

Which of the following loop condition will print the word “Good” 50 times? Assume the starting value of the loop is 1.

a)

($loop >= 50)

b)
  1. ($loop <= 50)

c)
  1. ($loop > 50)

d)

($loop < 50)

40.

For a loop for($i = 0; $i < 5; $i++), how many times will the loop execute?

a)

0 times

b)

4 times

c)

5 times

d)

6 times

41.

What will happen to the following for loop?

a)
  1. It will result in a syntax error

b)
  1. The loop will execute indefinitely

c)
  1. The loop will not execute at all

d)
  1. PHP will throw a warning

42.

Choose the CORRECT PHP code for Line 6 to generate output as shown below.

a)

$x = $x * $x;

b)

$x = $x + $x;

c)

$x = $x * 2

d)

$x = $x + 2

43.
What is the difference between an HTML Tag and an HTML element?
a)
An HTML Tag is case sensitive and an HTML element is not case sensitive.
b)
An HTML Tag is always paired and an HTML element is an "empty" tag.
c)
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
d)
An HTML Tag defines content and an HTML Element gives additional meaning and content.
44.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
a)
<li>
b)
<h1>
c)
<hr>
d)
<br>
45.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
46.
Which item refers to the start tag, the end tag and everything in between?
a)
HTML Element
b)
HTML Tag
c)
HTML Attribute
d)
CSS
47.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
48.
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines
the main heading in a web document?
a)
<h3>Product</h3>
b)
<h5>Product</h5>
c)
<h1>Product</h1>
d)
<h6>Product</h6>
49.
Which tag defines the visible content of a web document?
a)
<head>
b)
<meta>
c)
<title>
d)
<body>
50.

What symbol should you use to target an id in css?

a)

.

b)

+

c)

id

d)

#

51.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

52.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

53.

TRUE OR FALSE: HTML is used to style web pages.

a)

True

b)

False

54.

Which of the following is the proper way to apply the CSS code inside style.css to the about.html file?

a)

Inside style.css:

applyTo {

href: about.html;

}

b)

Inside about.html:

<head>

<style href="style.css"></style>

</head>

c)

Inside style.css:

<html href="about.html">

d)

Inside about.html:

<head>

<link rel="stylesheet" type="text/css" href="style.css">

</head>

55.

Which of the following would you use an IFrame for?

a)

Embedding a map from Google Maps in your website

b)

Adding an image to your website

c)

Changing an image’s opacity when the user hovers over the image

d)

Adding a filter to an image on your website

56.

You are trying to apply the same style to several different elements in a block, with line breaks before and after. Which tag should you use?

a)

<span>

b)

<div>

c)

<style>

d)

<src>

57.

Why is it important to avoid repetitive code while creating a website?

a)

Excessive code is harder to read and understand

b)

It is easier to make edits to websites when CSS rules are strategically grouped and organized

c)

It demonstrates good coding style

d)

All of the above

58.

Which of the following selects all a tags that are immediate children of div tags?

a)

div > a {

...

}

b)

...

}

c)

div < a {

...

}

d)

div + a {

...

}

59.

When should you use the <ol> code to make a list?

a)

Steps for a recipe

b)

Top 10 items

c)

List of names

d)

None of the above

60.

How do you make an image code?

a)

<img src="..." alt="...">

b)

<image source="..."> <alt>

</image> </alt>

c)

<image src="..." alt="...">

d)

None of the above

61.

What is the proper way to reference an ID in the CSS?

(Note: Assuming that the ID is set up properly in the HTML)

a)

You would use a period: .idname

b)

You would use a number sign: #idname

62.

The "." is used to select an html element by its:

a)

favorite color

b)

id

c)

class

d)

name

63.

The following is correct syntax for CSS


p { color: red; }

a)

True

b)

False

64.

CSS stands for

a)

Cascading Style Sheets

b)

Creative Style Settings

c)

Compact Software Settings

d)

Creative Setting Selectors

65.

Look at the following selector: $("div"). What does it select?

a)

First div element

b)

all div element

c)

None of the above

66.

Is jQuery a library for client scripting or server scripting?

a)

Client Scripting

b)

Server Scripting

c)

None of the above

67.

What is the correct jQuery code to set the background color of all p elements to red?

a)

$("p"). css("background-color","red");

b)

$("p").style("background-color","red");

c)

$("p"). css("background-color"= "red");

68.

With jQuery, look at the following selector: $("div.intro"). What does it select?

a)

First Div elements with class="intro"

b)

All div elements with class="intro"

c)

None of the above

69.

Which jQuery method is used to hide selected elements?

a)

hidden

b)

unvisible

c)

hide()

70.

What is the correct jQuery code for making all div elements 100 pixels high?

a)

$("div").height(100)

b)

&("div").height('100')

c)

$("div").high(“100”)

71.

Which jQuery function is used to prevent code from running, before the document is finished loading?

a)

$(document).onload()

b)

$(document).ready()

c)

None of the above

72.

Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?

a)

switch

b)

toggleClass()

c)

None of the above

73.

Which of the following ways is correct JQuery Hide() Syntax ?

a)

$.Hide()

b)

$("#hide").click(function(){

$("p").hide(); });

c)

None of the above

74.

The optional callback parameter is a function to be executed after the hide() or show() ____________.?

a)

Normal

b)

method completes

c)

None of the above

75.

You can also toggle between hiding and showing an element with the ______?

a)

Animation

b)

Picture

c)

toggle() method

76.

Which of the following is the correct syntax of toggle() effects in JQuery?

a)

$("button").click(function(){

$("p").toggle(); });

b)

.("p").toggle();

c)

None of the above

77.

What is front-end architecture in web applications?

a)

Server-side scripting

b)

Back-end architecture

c)

Design and structure of the client-side code

d)

Database management

78.

Name three key components of front-end architecture.

a)

Back-end logic, database management, server-side rendering

b)

HTML, CSS, server-side scripting

c)

User authentication, server-side logic, API integration

d)

UI, client-side logic, UX design

79.

Explain the role of HTML in front-end architecture.

a)

HTML is only used for styling the front-end

b)

HTML is not important in front-end architecture

c)

HTML is used for back-end development

d)

HTML is responsible for creating the structure and content of the front-end architecture.

80.

What is the purpose of CSS in front-end architecture?

a)

To handle user authentication

b)

To style the appearance of the web pages

c)

To store data in the database

d)

To manage server-side operations

81.

Describe the importance of JavaScript in front-end architecture.

a)

JavaScript is not compatible with modern web browsers

b)

JavaScript is only used for styling web pages

c)

JavaScript enables interactivity and dynamic content on web pages.

d)

JavaScript has no impact on front-end architecture

82.

What are the different types of front-end frameworks commonly used in web development?

a)

React, Angular, Vue.js, Ember.js

b)

Bootstrap, Foundation, Bulma, Materialize

c)

Java, C++, Python, Ruby

d)

MySQL, MongoDB, PostgreSQL, SQLite

83.

Explain the concept of responsive web design and its significance in front-end architecture.

a)

Responsive web design is only necessary for desktop websites

b)

Responsive web design has no impact on user experience

c)

Responsive web design requires separate codebases for each device

d)

Responsive web design allows for a single codebase to be used across multiple devices, providing a consistent user experience and reducing the need for separate mobile and desktop websites.

84.

Discuss the role of user interface (UI) design in front-end architecture.

a)

UI design has no impact on front-end architecture

b)

UI design is only about choosing colors and fonts

c)

UI design is only important for back-end architecture

d)

UI design plays a crucial role in front-end architecture by creating a visually appealing and user-friendly interface for the web application.

85.

What are the best practices for optimizing front-end performance in web applications?

a)

Using synchronous loading

b)

Implementing techniques such as minimizing HTTP requests, using asynchronous loading, optimizing images and assets, utilizing caching, and reducing JavaScript and CSS file sizes.

c)

Not optimizing images and assets

d)

Maximizing HTTP requests

86.

How does front-end architecture contribute to the overall user experience of a web application?

a)

Front-end architecture contributes to the overall user experience by determining the structure and organization of the user interface.

b)

Front-end architecture is only concerned with the server-side code

c)

Front-end architecture only affects the back-end functionality

d)

Front-end architecture has no impact on user experience

87.

The options in Microsoft Windows XP used for helping users with physical disablities and to reduce repetitive strain is________

a)

Computer accessibility

b)

Assistive Technology

c)

User friendly system

d)

Ecosystem

88.

Sound Sentry is designed to help users with________ impairment

a)

Voice

b)

Sound

c)

Noice

d)

Mouth

89.

The data is broken up into a bits of same sized pieces called

a)

Nibble

b)

Byte

c)

Packets

d)

Bit

90.

______ is designed to assist people that have difficulty using a keyboard or a mouse

a)

Parallel keys

b)

Adjacent keys

c)

Serial keys

d)

All keys

91.

____ are programs that are created on your local computer when you visit website

a)

Cookies

b)

Chocolates

c)

Passwords

d)

Bits

92.

_____Could be software or hardware and can assist in keeping a computer and network secure

a)

Switch

b)

Hub

c)

Gate valves

d)

Firewalls

93.

The high contrast option in Microsoft Windows XP is designed to assist people with____ impairments

a)

Vision

b)

Eye

c)

Nose

d)

Motor

94.

What is the purpose of the condition section in a for loop?

a)

To initialize the loop variable.

b)

To determine if the loop should continue running.

c)

To update the loop variable.

d)

To execute the loop body.

95.

Which of the following is a valid way to declare a variable in PHP?

a)

$variable = 10;

b)

var variable = 10;

c)

int variable = 10;

d)

variable = 10;

96.

What is the output of the following PHP code snippet?

$x = 5; echo $x + 10;

a)

5

b)

10

c)

15

d)

20

97.

What is the correct syntax to create a function in PHP?

a)

function myFunction()

b)

create myFunction()

c)

def myFunction()

d)

new myFunction()

98.

Which of the following is used to add a comment in HTML?

a)

// This is a comment

b)

/* This is a comment */

c)

<!-- This is a comment -->

d)

# This is a comment

99.

In PHP, which of the following is a valid way to declare an array?

a)

$array = array('value1', 'value2');

b)

$array = {'value1', 'value2'};

c)

$array = ('value1', 'value2');

d)

$array = 'value1', 'value2';