Font size
Worksheetsuntitled
Total questions: 99
Worksheet time: 52mins
Computer that requests the resources or data from other computer is called as ________ computer.
Client
Server
Software which allows user to view the webpage is called as __________.
Internet Browser
Interpreter
Operating System
Website
Which of the following website is used to search other website by typing a keyword ?
Router
Search Engine
None of these
Social Networks
Which of the following is valid Website Address ?
ww#.c4learn.com
c4learn@.com
www.c4learn.com
www.c4learn
Which of the following is called as protocol in the URL ?
http://www.c4learn.com
c4learn
.com
http
www
Whenever user opens any website then main page is called as ________.
Backend Page
None of these
Dead End
Home Page
Which vocabulary is different from them?
Internet
Linux
Unix
Window
The process of transferring files from a computer on the Internet to your computer is called
Uploading
Forwarding
FTP
Downloading
Verification of a login name and password is known as:
configuration
accessibility
authentication
logging in
Moving from one website to another is called :
Downloading
Browsing
Uploading
Attachment
A computer on internet are identified by :
e-mail address
street address
IP address
None of the above
Internet explorer falls under :
Operating System
Compiler
Browser
IP address
The Internet was originally a project of which agency?
ARPA
NSF
NSA
None of these
Which one of the following is not a search engine?
Bing
Yahoo
Windows
Internet Explorer is used for :
Viewing Movie
Listning Music
Viewing Web Pages
Drawing
PHP is an acronym for ______.
Pretext Hypertext Preprocessor
PHP: Hypertext Preprocessor
Personal Home Processor
Prototype Hypertext Preprocessor
Variable name in PHP starts with
! (Exclamation)
# (Hash)
$ (Dollar)
& (Ampersand)
Which is INVALID variable name in PHP?
age
_age
PersonAge
1age
Which of the following is a correct way to add single line comment in PHP?
//This is comment
/* This is comment */
<!-- This is comment -->
& This is comment &
Which of the following is used for concatenation in PHP?
+ (plus)
* (Asterisk)
; (semicolon)
. (dot)
What will be the output of the following PHP code?
Result 5
Result $x
Result x = 5
Error
What is the purpose of the echo statement in PHP?
To comment code
To perform arithmetic operations
To output strings or variables to the browser
To declare variables
Find the value for the following expression, given that $y = 20; $z = 3;
$y + $z % 2;
1
20.5
21
0
Find the value for each of the following expression, given that $x = 30; $y = 20; $z = 3;
$y / 2 * $z - $x;
0
1
2
3
Look at the following code and determine what will be displayed in the browser?
What is her age? <br>She is $age years old
What is her age?
She is $age years old
What is her age? She is 20 years old
What is her age?
She is 20 years old
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.
localhost/htdocs/assignment/form_claim.html
localhost/assignment/form_claim.html
xampp/htdocs/assignment/form_claim.html
xampp/assignment/form_claim.html
Determine True/False for the following expressions where $x = 1.
($x * 10 < $x * 5 + 5)
True
False
Which of the following BEST describes a repetition control structure?
Executes statements only once.
Executes statements when the condition is false.
Executes statements more than once.
Executes statements randomly.
In a while loop, when is the loop body executed?
When the loop condition is false.
When the loop condition is true.
Before the loop condition is evaluated.
After the loop condition becomes false.
What will be the output of the following code?
HelloHelloHelloHello
HelloHelloHello
Hello Hello Hello
Hello Hello Hello Hello
In a for loop, what is the purpose of the initialization section?
To specify the condition for the loop to run.
To set the starting value of the loop.
To update the loop.
To define the statements to be executed.
Which of the following statements correctly defines the condition in a for loop?
The condition must be true for the loop to start.
The condition is checked after each iteration.
The condition is optional in a for loop.
The condition is checked only once.
What will be the output of the following code?
10 9 8 7 6 5
10 9 8 7 6
10 9 8 7
10 9 8
Given the code, what is the value of $x after the loop executes?
2
3
4
5
Which of the following is TRUE about a while loop?
It always runs at least once.
It may not run if the condition is false initially.
It runs indefinitely.
It does not require a condition.
In a loop, what will happen if the update step is omitted?
The loop will run indefinitely.
The loop will show an error.
The loop will not executes.
The loop will run once.
Which of the following is the correct syntax for a for loop in PHP?
for (condition; initialization; updating)
for (initialization; condition; updating)
for (initialization, condition, updating)
for (condition; initialization; updating);
How many loops are there in PHP?
1
2
3
4
Which of the following loop condition will print the word “Good” 50 times? Assume the starting value of the loop is 1.
($loop >= 50)
($loop <= 50)
($loop > 50)
($loop < 50)
For a loop for($i = 0; $i < 5; $i++), how many times will the loop execute?
0 times
4 times
5 times
6 times
What will happen to the following for loop?
It will result in a syntax error
The loop will execute indefinitely
The loop will not execute at all
PHP will throw a warning
Choose the CORRECT PHP code for Line 6 to generate output as shown below.
$x = $x * $x;
$x = $x + $x;
$x = $x * 2
$x = $x + 2
the main heading in a web document?
What symbol should you use to target an id in css?
.
+
id
#
What symbol should you use to target a class name in css?
#
()
.
class
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
TRUE OR FALSE: HTML is used to style web pages.
True
False
Which of the following is the proper way to apply the CSS code inside style.css to the about.html file?
Inside style.css:
applyTo {
href: about.html;
}
Inside about.html:
<head>
<style href="style.css"></style>
</head>
Inside style.css:
<html href="about.html">
Inside about.html:
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
Which of the following would you use an IFrame for?
Embedding a map from Google Maps in your website
Adding an image to your website
Changing an image’s opacity when the user hovers over the image
Adding a filter to an image on your website
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?
<span>
<div>
<style>
<src>
Why is it important to avoid repetitive code while creating a website?
Excessive code is harder to read and understand
It is easier to make edits to websites when CSS rules are strategically grouped and organized
It demonstrates good coding style
All of the above
Which of the following selects all a tags that are immediate children of div tags?
div > a {
...
}
...
}
div < a {
...
}
div + a {
...
}
When should you use the <ol> code to make a list?
Steps for a recipe
Top 10 items
List of names
None of the above
How do you make an image code?
<img src="..." alt="...">
<image source="..."> <alt>
</image> </alt>
<image src="..." alt="...">
None of the above
What is the proper way to reference an ID in the CSS?
(Note: Assuming that the ID is set up properly in the HTML)
You would use a period: .idname
You would use a number sign: #idname
The "." is used to select an html element by its:
favorite color
id
class
name
The following is correct syntax for CSS
p { color: red; }
True
False
CSS stands for
Cascading Style Sheets
Creative Style Settings
Compact Software Settings
Creative Setting Selectors
Look at the following selector: $("div"). What does it select?
First div element
all div element
None of the above
Is jQuery a library for client scripting or server scripting?
Client Scripting
Server Scripting
None of the above
What is the correct jQuery code to set the background color of all p elements to red?
$("p"). css("background-color","red");
$("p").style("background-color","red");
$("p"). css("background-color"= "red");
With jQuery, look at the following selector: $("div.intro"). What does it select?
First Div elements with class="intro"
All div elements with class="intro"
None of the above
Which jQuery method is used to hide selected elements?
hidden
unvisible
hide()
What is the correct jQuery code for making all div elements 100 pixels high?
$("div").height(100)
&("div").height('100')
$("div").high(“100”)
Which jQuery function is used to prevent code from running, before the document is finished loading?
$(document).onload()
$(document).ready()
None of the above
Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?
switch
toggleClass()
None of the above
Which of the following ways is correct JQuery Hide() Syntax ?
$.Hide()
$("#hide").click(function(){
$("p").hide(); });
None of the above
The optional callback parameter is a function to be executed after the hide() or show() ____________.?
Normal
method completes
None of the above
You can also toggle between hiding and showing an element with the ______?
Animation
Picture
toggle() method
Which of the following is the correct syntax of toggle() effects in JQuery?
$("button").click(function(){
$("p").toggle(); });
.("p").toggle();
None of the above
What is front-end architecture in web applications?
Server-side scripting
Back-end architecture
Design and structure of the client-side code
Database management
Name three key components of front-end architecture.
Back-end logic, database management, server-side rendering
HTML, CSS, server-side scripting
User authentication, server-side logic, API integration
UI, client-side logic, UX design
Explain the role of HTML in front-end architecture.
HTML is only used for styling the front-end
HTML is not important in front-end architecture
HTML is used for back-end development
HTML is responsible for creating the structure and content of the front-end architecture.
What is the purpose of CSS in front-end architecture?
To handle user authentication
To style the appearance of the web pages
To store data in the database
To manage server-side operations
Describe the importance of JavaScript in front-end architecture.
JavaScript is not compatible with modern web browsers
JavaScript is only used for styling web pages
JavaScript enables interactivity and dynamic content on web pages.
JavaScript has no impact on front-end architecture
What are the different types of front-end frameworks commonly used in web development?
React, Angular, Vue.js, Ember.js
Bootstrap, Foundation, Bulma, Materialize
Java, C++, Python, Ruby
MySQL, MongoDB, PostgreSQL, SQLite
Explain the concept of responsive web design and its significance in front-end architecture.
Responsive web design is only necessary for desktop websites
Responsive web design has no impact on user experience
Responsive web design requires separate codebases for each device
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.
Discuss the role of user interface (UI) design in front-end architecture.
UI design has no impact on front-end architecture
UI design is only about choosing colors and fonts
UI design is only important for back-end architecture
UI design plays a crucial role in front-end architecture by creating a visually appealing and user-friendly interface for the web application.
What are the best practices for optimizing front-end performance in web applications?
Using synchronous loading
Implementing techniques such as minimizing HTTP requests, using asynchronous loading, optimizing images and assets, utilizing caching, and reducing JavaScript and CSS file sizes.
Not optimizing images and assets
Maximizing HTTP requests
How does front-end architecture contribute to the overall user experience of a web application?
Front-end architecture contributes to the overall user experience by determining the structure and organization of the user interface.
Front-end architecture is only concerned with the server-side code
Front-end architecture only affects the back-end functionality
Front-end architecture has no impact on user experience
The options in Microsoft Windows XP used for helping users with physical disablities and to reduce repetitive strain is________
Computer accessibility
Assistive Technology
User friendly system
Ecosystem
Sound Sentry is designed to help users with________ impairment
Voice
Sound
Noice
Mouth
The data is broken up into a bits of same sized pieces called
Nibble
Byte
Packets
Bit
______ is designed to assist people that have difficulty using a keyboard or a mouse
Parallel keys
Adjacent keys
Serial keys
All keys
____ are programs that are created on your local computer when you visit website
Cookies
Chocolates
Passwords
Bits
_____Could be software or hardware and can assist in keeping a computer and network secure
Switch
Hub
Gate valves
Firewalls
The high contrast option in Microsoft Windows XP is designed to assist people with____ impairments
Vision
Eye
Nose
Motor
What is the purpose of the condition section in a for loop?
To initialize the loop variable.
To determine if the loop should continue running.
To update the loop variable.
To execute the loop body.
Which of the following is a valid way to declare a variable in PHP?
$variable = 10;
var variable = 10;
int variable = 10;
variable = 10;
What is the output of the following PHP code snippet?
$x = 5; echo $x + 10;
5
10
15
20
What is the correct syntax to create a function in PHP?
function myFunction()
create myFunction()
def myFunction()
new myFunction()
Which of the following is used to add a comment in HTML?
// This is a comment
/* This is a comment */
<!-- This is a comment -->
# This is a comment
In PHP, which of the following is a valid way to declare an array?
$array = array('value1', 'value2');
$array = {'value1', 'value2'};
$array = ('value1', 'value2');
$array = 'value1', 'value2';
