Question: Which of the following is the correct CSS syntax?

Choices:
- p:color=green, font-size=15px
- {p:color=green, font-size=15px}
- p {color:green, font-size:15px;}
- p {color:green; font-size:15px;}


Question: Select the correct among the following for linking an external style sheet.

Choices:
- <link rel=“stylesheet” type=“text/css” href=“style.css”>
- <style rel=“stylesheet” type=“text/css” href=“style.css”>
- <link>stylesheet
- <link href=“style.css”>stylesheet


Question: Which of the following is the correct HTML element to define emphasized text?

Choices:
- <italic>
- <em>
- <i>
- <emph>


Question: What does HTML stands for?

Choices:
- Hypertext Machine language.
- Hypertext and links markup language.
- Hypertext Markup Language.
- Hightext machine language.


Question: What is the correct syntax for referring to an external script called \'gfg.js\'?

Choices:
- <script name="gfg.js">
- <script href="gfg.js">
- <script src="gfg.js">
- None of these


Question: Is it necessary for the external script file to contain a <script> tag?

Choices:
- Yes
- No
- Depends on the type of include
- None of the above


Question: Where is the correct place to insert a JavaScript?

Choices:
- Both the head section and the body section are correct
- The head section
- The body section
- None of the above


Question: Inside which HTML element do we put the JavaScript?

Choices:
- <javascript>
- <js>
- <src>
- <script>


Question: Which of the following function is used to reading the string variable?

Choices:
- file_contents()
- file_get_contents()
- file_content_get()
- fget_content()


Question:
What is the correct output of the below code snippets?
<?php
    $number = "123456";
    if (!filter_var($number, FILTER_VALIDATE_INT))
        echo("Valid");
    else
         echo("Not Valid");
?>

Choices:
- Valid
- Not Valid
- Error
- None of the above


Question: If we filter many variables into one then which of the following filter is used?

Choices:
- filter_var_array()
- filter_var()
- filter_input
- filter_input_array


Question: Full form of PHP is______

Choices:
- Hypertext Preprocessor
- Pretext Hypertext Preprocessor
- Processor Hypertext Processor
- None of the above


Question: The default file extension in PHP are ____

Choices:
- .php
- .css
- .js
- .html


Question: Which of the following is the correct way to declare the constant in PHP?

Choices:
- const
- define
- var
- let


Question: How does the name of the variable in PHP starts?

Choices:
- Sign !
- Sign $
- Sign &
- Sign #


Question: Which of the following is the syntax of comment in PHP?

Choices:
- All of the above


Question: If you want to add write the PHP code which of the below code editor is used?

Choices:
- Notepad++
- Sublime
- Visual code
- All of the above


Question: Which of the below method is used to generate the unique id in Php?

Choices:
- unique()
- id()
- mid()
- None of the above


Question: Which of the following is the correct way to concrete() the two strings in PHP?

Choices:
- Append
- All of the above


Question: Which of the below is the correct syntax for opening the given file in PHP?"geeky.txt"

Choices:
- fopen("geeky.txt", "r");
- fopen("geeky.txt", "w");
- fopen("geeky.txt", "read");
- fopen("geeky.txt");


Question: Which of the below function display the configuration in PHP?

Choices:
- php_display()
- phpinfo()
- info_config()
- None of the above


Question: Which of the following HTML Elements is used for making any text bold ?

Choices:
- <p>
- <i>
- <li>
- <b>


Question: The external data in PHP are ________?

Choices:
- Cookies
- Input data from a form
- Server Variables
- All of the above


Question:
What is the output of the following code?<?php

    $input1 = "Geeks";
    $iinput1 .= "For";
    echo "$input1";
?>

Choices:
- Geeks
- For
- GeekfFor
- None of the above


Question:
What is the output of the following code?<?php
    $gfg = "DSA";
    $input = $gfg[2];
    echo "$input";
?>

Choices:
- D
- S
- A
- None of the above


Question: Which of the following php functions accept any no of parameter?

Choices:
- func_get_argv()
- get_argv()
- func_get_args()
- get_argc()


Question: Which of the below method is used to send the given data using URL?

Choices:
- Post
- Send
- Get
- Both A and D


Question:
What is the output of the below code snippets:
<?php
    $input="gfg mcq quiz sets";
    echo ucwords($input);
?>

Choices:
- Gfg Mcq Quiz Sets
- gfg MCq Quiz Sets
- Gfg Mcq Quiz sets
- Gfg McQ Quiz Sets


Question: Which of below functions is used to sort an array according to its value?

Choices:
- unshift()
- asort()
- arsort()
- compact()


Question: Which function in PHP is used to annotates an image including the text?

Choices:
- Gmagick::getpackagename( value )
- Gmagick::annotateImage()
- Gmagick::getreleasedate()
- Gmagick::getpackagename( void )


Question: Which of the below function in PHP and is used to convert the String into an array ?

Choices:
- add_last()
- str_split()
- str_casecmp()
- str_add()


Question: Which of the following function returns a character from the specified ASCII value?

Choices:
- asc()
- val()
- ascii()
- chr()


Question: Which of the following function used for the unset variables in PHP?

Choices:
- delete()
- unset()
- get()
- All of the above


Question: Which of the following function is used to redirect PHP pages?

Choices:
- redirect()
- header()
- reflect()
- None all of the above


Question: If you handle a session in  PHP which of the below is the correct syntax for that?

Choices:
- session_start() function
- $_SESSION[]
- isset() function
- session_destroy() function


Question: How do we call the constructor function in the PHP class?

Choices:
- class_name()
- __construct
- constructor
- None of the above.


Question: From the below filter which one is used to checking whether an element exists or not?

Choices:
- filter_has_var
- filter_var
- filter_id
- filter_var_array


Question: The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.

Choices:
- well-formed
- reasonable
- valid
- logical