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 functions

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   What does the abbreviation HTML stand for ?

HyperText Markup Language.

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

6 tag

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

h6

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

Ordered, Unordered Lists.

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

<ol>

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

.html

Q. 56   We enclose HTML tags within ?

< >

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

HTML uses tags defined within the language.

Q. 58   How to display preformatted text in HTML ?

<pre>

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

Both the <hr> and the <br> tag

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

font-family

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

Width and height

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

id

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

It is used to add styles to an HTML element.

Q. 64   The full form of CSS is :

Cascading Style Sheets

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

Declaration statements

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

background-color

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

Ignores the statements

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

color

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

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

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

3 ways

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

If-then-else statement

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

.navbar-right

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

<style>

Q. 74   Who developed the bootstrap ?

Mark Otto and Jacob Thornton

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

remove() method

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

12 columns

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

.

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

Inline

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

No

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

.btn-lg

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

opacity

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

.collapse

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

letter-spacing

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

.modal-lg

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

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

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

John Resig in 2006

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

External

Q. 88   Is Bootstrap 3 mobile-first ?

TRUE

Q. 89   jQuery is a -

JavaScript library

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

#

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

.container

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

parents() method

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

the $ sign

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

.jumbotron

Q. 95   How can we write comments in CSS ?

/* */

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

.dropdown

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

Top, Right, Bottom, Left

Q. 98   Which type of JavaScript language is ___

Object-Based

Q. 99   What is the effect of the tag?

It converts the text within it to bold font.