Unlimited Online Free Software Download! Get 100% Free Hurry up!

WEB DEVELOPMENT Quiz

Welcome!

Quiz
Q. 1   PHP stands for -

Hypertext Preprocessor

Q. 2   Who is known as the father of PHP ?

Rasmus Lerdrof

Q. 3   Variable name in PHP starts with -

$ (Dollar)

Q. 4   Which of the following is the default file extension of PHP ?

.php

Q. 5   Which of the following is not a variable scope in PHP ?

Extern

Q. 6   Which of the following is correct to add a comment in php ?

Both (// ……) and (/* …… */)

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

Both (echo) and (print)

Q. 8   Which of the following is the use of strlen() function in PHP ?

The strlen() function returns the length of string

Q. 9   Which of the following is used for concatenation in PHP ?

. (dot)

Q. 10   Which of the following starts with __ (double underscore) in PHP ?

Magic constants

Q. 11   Which of the following is the use of strpos() function in PHP ?

The strpos() function is used to search for a character/text in a string

Q. 12   What does PEAR stands for ?

PHP extension and application repository

Q. 13   Which of the following is the correct way to create a function in PHP ?

function myFunction()

Q. 14   Which of the following PHP function is used to generate unique id ?

uniqueid()

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

$variable_name = value;

Q. 16   What is the use of fopen() function in PHP ?

The fopen() function is used to open files in PHP

Q. 17   What is the use of isset() function in PHP ?

The isset() function is used to check whether variable is set or not

Q. 18   What is the use of sprintf() function in PHP ?

The sprintf() function is used to send output to variable

Q. 19   Which of the following is the correct way to open the file 'sample.txt' as readable ?

fopen('sample.txt', 'r');

Q. 20   Which of the following is the correct use of the strcmp() function in PHP ?

The strcmp() function is used to compare the strings including case

Q. 21   Which of the following function displays the information about PHP and its configuration ?

phpinfo()

Q. 22   Which of the following function is used to find files in PHP ?

glob()

Q. 23   Which of the following function is used to set cookie in PHP ?

setcookie()

Q. 24   Which of the following function is used to get the ASCII value of a character in PHP ?

chr()

Q. 25   Which of the following function is used to unset a variable in PHP ?

unset()

Q. 26   Which of the following function is used to sort an array in descending order ?

rsort()

Q. 27   Which of the following is/are the code editors in PHP ?

All of the above

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

; (semicolon)

Q. 29   Which of the following function in PHP can be used to test the type of any variable ?

From 8 to Large 72

Q. 30   String values in PHP must be enclosed within -

Both (Double Quotes) and (Single Quotes)

Q. 31   Which of the following variable name is invalid ?

$new-var

Q. 32   Which of the following is the correct way to create an array in PHP ?

$season = array('summer' , 'winter' , 'spring' , 'autumn');

Q. 33   Which of the following is a built-in function in PHP that adds a value to the end of an array ?

array_push()

Q. 34   Which of the following function in PHP returns a text in title case from a variable ?

ucwords($var)

Q. 35   Which of the following is the correct way to print 'Hello World' in PHP ?

echo 'Hello World';

Q. 36   Which of the following function is used to compress a string in PHP ?

gzcompress()

Q. 37   What does SPL stands for in PHP ?

Standard PHP Library

Q. 38   Which of the following function converts a string to all uppercase ?

strtoupper()

Q. 39   The function in PHP that can be used to concatenate array elements to form a single delimited string is -

implode()

Q. 40   Which PHP function determines the last access time of a file ?

fileatime()

Q. 41   Which PHP function is capable to read specific number of characters from a file ?

fgets()

Q. 42   Which PHP function is used to find the position of the last occurrence of a substring inside another string ?

strrpos()

Q. 43   Which of the following function is used to compute the difference between two arrays in PHP ?

array_diff

Q. 44   Which PHP function converts an English text datetime into a Unix timestamp ?

strtotime()

Q. 45   Which of the following function in PHP returns the time of sunrise of a particular day and location ?

date_sunrise()

Q. 46   Which of the following is the correct syntax to write a PHP code ?

<?php ?>

Q. 47   How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.

8

Q. 48   What does PDO stand for ?

PHP Data Object

Q. 49   Which PHP statement will give output as $x on the screen ?

echo "$x";

Q. 50   PHP's numerically indexed array begin with position ___________

0

Q. 51   What does the abbreviation HTML stand for ?

HyperText Markup Language.

Q. 52   How many sizes of headers are available in HTML by default ?

6

Q. 53   What is the smallest header in HTML by default ?

h6

Q. 54   What are the types of lists available in HTML ?

Ordered, Unordered Lists.

Q. 55   How to create an ordered list in HTML ?

<ol>

Q. 56   HTML files are saved by default with the extension ?

.html

Q. 57   We enclose HTML tags within ?

< >

Q. 58   Which of the following is correct about HTML ?

HTML uses tags defined within the language.

Q. 59   How to display preformatted text in HTML ?

<pre>

Q. 60   Which of the following tags doesn't require a closing tag ?

Both the <hr> and the <br> tag

Q. 61   Which of the following properties is used to change the font of text ?

font-family

Q. 62   What are the attributes used to change the size of an image ?

Width and height

Q. 63   Which attribute is used to provide a unique name to an HTML element ?

id

Q. 64   What is the function of the HTML style attribute ?

It is used to add styles to an HTML element.

Q. 65   The full form of CSS is :

Cascading Style Sheets

Q. 66   The 'function' and 'var' are known as :

Declaration statements

Q. 67   How can we change the background color of an element ?

background-color

Q. 68   When interpreter encounters an empty statements, what it will do :

Ignores the statements

Q. 69   How can we change the text color of an element ?

color

Q. 70   In JavaScript, what is a block of statement ?

block that combines a number of statements into a single compound statement

Q. 71   In how many ways can CSS be written in ?

3

Q. 72   Which one of the following also known as Conditional Expression :

If-then-else statement

Q. 73   The class used to right align the navigation bar buttons is -

.navbar-right

Q. 74   Which HTML tag is used to declare internal CSS ?

<style>

Q. 75   Who developed the bootstrap ?

Mark Otto and Jacob Thornton

Q. 76   The jQuery method used to remove the set of matched elements is

remove() method

Q. 77   How many columns are allowed in a bootstrap grid system ?

12

Q. 78   How can we select an element with a specific Class in CSS ?

.

Q. 79   What type of CSS is the following code snippet ? <h1 style = "color:blue;" > A Blue Heading </h1>

Inline

Q. 80   Can negative values be allowed in padding property ?

No

Q. 81   Which of the following class in Bootstrap is used to create a large button ?

.btn-lg

Q. 82   The CSS property used to specify the transparency of an element is ?

opacity

Q. 83   The class in Bootstrap which is used to specify the collapsible elements is -

.collapse

Q. 84   How can we specify the spacing between each letter in a text in CSS ?

letter-spacing

Q. 85   Which of the following class in Bootstrap is used for creating the large size modals ?

.modal-lg

Q. 86   What is the correct syntax for referring an external CSS ?

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

Q. 87   Who developed jQuery, and in which year it was first released ?

John Resig in 2006

Q. 88   What type of CSS is generally recommended for designing large web pages ?

External

Q. 89   Is Bootstrap 3 mobile-first ?

TRUE

Q. 90   jQuery is a -

JavaScript library

Q. 91   How can we select an element with a specific ID in CSS ?

#

Q. 92   Which of the following class in Bootstrap is used to provide a responsive fixed width container ?

.container

Q. 93   The jQuery method used to get all ancestors of the matched set of elements is -

parents() method

Q. 94   Which of the following sign is used as a shortcut for jQuery ?

the $ sign

Q. 95   Which of the following class in bootstrap is used to create a big box for calling extra attention ?

.jumbotron

Q. 96   How can we write comments in CSS ?

/* */

Q. 97   Which of the following class in Bootstrap is used to create a dropdown menu ?

.dropdown

Q. 98   In the below code snippet, in what order will the margins be added ?
p {
margin: 25px 50px 75px 100px;
}

Top, Right, Bottom, Left

Q. 99   Which type of JavaScript language is ___

Object-Based

Q. 100   What is the effect of the tag?

It converts the text within it to bold font.