Unlimited Online Free Software Download! Get 100% Free Hurry up!
Q. 1   PHP stands for -
  • Correct Answer: A. Hypertext Preprocessor

Q. 2   Who is known as the father of PHP ?
  • Correct Answer: C. Rasmus Lerdrof

Q. 3   Variable name in PHP starts with -
  • Correct Answer: B. $ (Dollar)

Q. 4   Which of the following is the default file extension of PHP ?
  • Correct Answer: A. .php

Q. 5   Which of the following is not a variable scope in PHP ?
  • Correct Answer: A. Extern

Q. 6   Which of the following is correct to add a comment in php ?
  • Correct Answer: D. Both (// ……) and (/* …… */)

Q. 7   Which of the following is used to display the output in PHP ?
  • Correct Answer: D. Both (echo) and (print)

Q. 8   Which of the following is the use of strlen() function in PHP ?
  • Correct Answer: B. The strlen() function returns the length of string

Q. 9   Which of the following is used for concatenation in PHP ?
  • Correct Answer: C. . (dot)

Q. 10   Which of the following starts with __ (double underscore) in PHP ?
  • Correct Answer: C. Magic constants

Q. 11   Which of the following is the use of strpos() function in PHP ?
  • Correct Answer: C. The strpos() function is used to search for a character/text in a string

Q. 12   What does PEAR stands for ?
  • Correct Answer: A. PHP extension and application repository

Q. 13   Which of the following is the correct way to create a function in PHP ?
  • Correct Answer: C. function myFunction()

Q. 14   Which of the following PHP function is used to generate unique id ?
  • Correct Answer: C. uniqueid()

Q. 15   Which of the following is the correct way of defining a variable in PHP ?
  • Correct Answer: B. $variable_name = value;

Q. 16   What is the use of fopen() function in PHP ?
  • Correct Answer: C. The fopen() function is used to open files in PHP

Q. 17   What is the use of isset() function in PHP ?
  • Correct Answer: A. The isset() function is used to check whether variable is set or not

Q. 18   What is the use of sprintf() function in PHP ?
  • Correct Answer: B. 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 ?
  • Correct Answer: A. fopen('sample.txt', 'r');

Q. 20   Which of the following is the correct use of the strcmp() function in PHP ?
  • Correct Answer: D. 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 ?
  • Correct Answer: B. phpinfo()

Q. 22   Which of the following function is used to find files in PHP ?
  • Correct Answer: A. glob()

Q. 23   Which of the following function is used to set cookie in PHP ?
  • Correct Answer: C. setcookie()

Q. 24   Which of the following function is used to get the ASCII value of a character in PHP ?
  • Correct Answer: D. chr()

Q. 25   Which of the following function is used to unset a variable in PHP ?
  • Correct Answer: B. unset()

Q. 26   Which of the following function is used to sort an array in descending order ?
  • Correct Answer: D. rsort()

Q. 27   Which of the following is/are the code editors in PHP ?
  • Correct Answer: D. All of the above

Q. 28   Which of the following is used to end a statement in PHP ?
  • Correct Answer: B. ; (semicolon)

Q. 29   Which of the following function in PHP can be used to test the type of any variable ?
  • Correct Answer: B. From 8 to Large 72

Q. 30   String values in PHP must be enclosed within -
  • Correct Answer: C. Both (Double Quotes) and (Single Quotes)

Q. 31   Which of the following variable name is invalid ?
  • Correct Answer: C. $new-var

Q. 32   Which of the following is the correct way to create an array in PHP ?
  • Correct Answer: B. $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 ?
  • Correct Answer: A. array_push()

Q. 34   Which of the following function in PHP returns a text in title case from a variable ?
  • Correct Answer: B. ucwords($var)

Q. 35   Which of the following is the correct way to print 'Hello World' in PHP ?
  • Correct Answer: C. echo 'Hello World';

Q. 36   Which of the following function is used to compress a string in PHP ?
  • Correct Answer: C. gzcompress()

Q. 37   What does SPL stands for in PHP ?
  • Correct Answer: A. Standard PHP Library

Q. 38   Which of the following function converts a string to all uppercase ?
  • Correct Answer: D. strtoupper()

Q. 39   The function in PHP that can be used to concatenate array elements to form a single delimited string is -
  • Correct Answer: A. implode()

Q. 40   Which PHP function determines the last access time of a file ?
  • Correct Answer: B. fileatime()

Q. 41   Which PHP function is capable to read specific number of characters from a file ?
  • Correct Answer: C. fgets()

Q. 42   Which PHP function is used to find the position of the last occurrence of a substring inside another string ?
  • Correct Answer: B. strrpos()

Q. 43   Which of the following function is used to compute the difference between two arrays in PHP ?
  • Correct Answer: B. array_diff

Q. 44   Which PHP function converts an English text datetime into a Unix timestamp ?
  • Correct Answer: C. strtotime()

Q. 45   Which of the following function in PHP returns the time of sunrise of a particular day and location ?
  • Correct Answer: A. date_sunrise()

Q. 46   Which of the following is the correct syntax to write a PHP code ?
  • Correct Answer: A. <?php ?>

Q. 47   How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.
  • Correct Answer: C. 8 functions

Q. 48   What does PDO stand for ?
  • Correct Answer: C. PHP Data Object

Q. 49   Which PHP statement will give output as $x on the screen ?
  • Correct Answer: A. echo "$x";

Q. 50   What does the abbreviation HTML stand for ?
  • Correct Answer: A. HyperText Markup Language.

Q. 51   How many sizes of headers are available in HTML by default ?
  • Correct Answer: D. 6 tag

Q. 52   What is the smallest header in HTML by default ?
  • Correct Answer: C. h6

Q. 53   What are the types of lists available in HTML ?
  • Correct Answer: A. Ordered, Unordered Lists.

Q. 54   How to create an ordered list in HTML ?
  • Correct Answer: B. <ol>

Q. 55   HTML files are saved by default with the extension ?
  • Correct Answer: A. .html

Q. 56   We enclose HTML tags within ?
  • Correct Answer: B. < >

Q. 57   Which of the following is correct about HTML ?
  • Correct Answer: B. HTML uses tags defined within the language.

Q. 58   How to display preformatted text in HTML ?
  • Correct Answer: B. <pre>

Q. 59   Which of the following tags doesn't require a closing tag ?
  • Correct Answer: C. Both the <hr> and the <br> tag

Q. 60   Which of the following properties is used to change the font of text ?
  • Correct Answer: A. font-family

Q. 61   What are the attributes used to change the size of an image ?
  • Correct Answer: A. Width and height

Q. 62   Which attribute is used to provide a unique name to an HTML element ?
  • Correct Answer: A. id

Q. 63   What is the function of the HTML style attribute ?
  • Correct Answer: A. It is used to add styles to an HTML element.

Q. 64   The full form of CSS is :
  • Correct Answer: A. Cascading Style Sheets

Q. 65   The 'function' and 'var' are known as :
  • Correct Answer: C. Declaration statements

Q. 66   How can we change the background color of an element ?
  • Correct Answer: A. background-color

Q. 67   When interpreter encounters an empty statements, what it will do :
  • Correct Answer: D. Ignores the statements

Q. 68   How can we change the text color of an element ?
  • Correct Answer: B. color

Q. 69   In JavaScript, what is a block of statement ?
  • Correct Answer: B. block that combines a number of statements into a single compound statement

Q. 70   In how many ways can CSS be written in ?
  • Correct Answer: C. 3 ways

Q. 71   Which one of the following also known as Conditional Expression :
  • Correct Answer: C. If-then-else statement

Q. 72   The class used to right align the navigation bar buttons is -
  • Correct Answer: C. .navbar-right

Q. 73   Which HTML tag is used to declare internal CSS ?
  • Correct Answer: A. <style>

Q. 74   Who developed the bootstrap ?
  • Correct Answer: D. Mark Otto and Jacob Thornton

Q. 75   The jQuery method used to remove the set of matched elements is
  • Correct Answer: C. remove() method

Q. 76   How many columns are allowed in a bootstrap grid system ?
  • Correct Answer: B. 12 columns

Q. 77   How can we select an element with a specific Class in CSS ?
  • Correct Answer: C. .

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

Q. 79   Can negative values be allowed in padding property ?
  • Correct Answer: A. No

Q. 80   Which of the following class in Bootstrap is used to create a large button ?
  • Correct Answer: D. .btn-lg

Q. 81   The CSS property used to specify the transparency of an element is ?
  • Correct Answer: A. opacity

Q. 82   The class in Bootstrap which is used to specify the collapsible elements is -
  • Correct Answer: A. .collapse

Q. 83   How can we specify the spacing between each letter in a text in CSS ?
  • Correct Answer: B. letter-spacing

Q. 84   Which of the following class in Bootstrap is used for creating the large size modals ?
  • Correct Answer: C. .modal-lg

Q. 85   What is the correct syntax for referring an external CSS ?
  • Correct Answer: A. <link rel="stylesheet" type="text/css" href="style.css">

Q. 86   Who developed jQuery, and in which year it was first released ?
  • Correct Answer: C. John Resig in 2006

Q. 87   What type of CSS is generally recommended for designing large web pages ?
  • Correct Answer: C. External

Q. 88   Is Bootstrap 3 mobile-first ?
  • Correct Answer: A. TRUE

Q. 89   jQuery is a -
  • Correct Answer: B. JavaScript library

Q. 90   How can we select an element with a specific ID in CSS ?
  • Correct Answer: A. #

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

Q. 92   The jQuery method used to get all ancestors of the matched set of elements is -
  • Correct Answer: A. parents() method

Q. 93   Which of the following sign is used as a shortcut for jQuery ?
  • Correct Answer: C. the $ sign

Q. 94   Which of the following class in bootstrap is used to create a big box for calling extra attention ?
  • Correct Answer: D. .jumbotron

Q. 95   How can we write comments in CSS ?
  • Correct Answer: A. /* */

Q. 96   Which of the following class in Bootstrap is used to create a dropdown menu ?
  • Correct Answer: A. .dropdown

Q. 97   In the below code snippet, in what order will the margins be added ?
p {
margin: 25px 50px 75px 100px;
}
  • Correct Answer: A. Top, Right, Bottom, Left

Q. 98   Which type of JavaScript language is ___
  • Correct Answer: B. Object-Based

Q. 99   What is the effect of the tag?
  • Correct Answer: A. It converts the text within it to bold font.