0

web technology Online Quiz - 37

Description: web technology Online Quiz - 37
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Which of the following variables is not a predefined variable?

  1. $get

  2. $ask

  3. $request

  4. $post


Correct Option: B
  1. You can define a constant by using the define() function. Once a constant is defined

  2. It can never be changed but can be undefined

  3. It can be changed but can not be undefined

  4. It can be changed and can be undefined


Correct Option: A
  1. You can define a constant by using the define() function. Once a constant is defined

  2. It can never be changed but can be undefined

  3. It can be changed but can not be undefined

  4. It can be changed and can be undefined


Correct Option: A

Which of the following function returns the number of characters in a string variable?

  1. count($variable)

  2. len($variable)

  3. strcount($variable)

  4. strlen($variable)


Correct Option: D

A variable $word is set to “HELLO WORLD”, which of the following script returns in title case?

  1. echo ucwords($word)

  2. echo ucwords(strtolower($word)

  3. echo ucfirst($word)

  4. echo ucfirst(strtolower($word)


Correct Option: B

The difference between include() and require()

  1. are different how they handle failure

  2. both are same in every aspects

  3. is include() produced a Fatal Error while require results in a Warning

  4. none of above


Correct Option: A

When a file is included the code it contains, behave for variable scope of the line on which the include occurs

  1. Any variable available at that line in the calling file will be available within the called file from that point

  2. Any variable available at that line in the calling file will not be available within the called file

  3. Variables are local in both called and calling files

  4. None of above


Correct Option: A

Which of the following method is suitable when you need to send larger form submissions?

  1. Get

  2. Post

  3. Both Get and Post

  4. There is no direct way for larger form. You need to store them in a file and retrieve


Correct Option: B

Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create anew file. If the file exist, place the file pointer at the end of the file after all other data.

  1. W

  2. W+

  3. A

  4. A+


Correct Option: C
  1. Enable or disable cookie support

  2. Declare cookie variables

  3. Store data in cookie variable

  4. All of above


Correct Option: C

To work with remote files in PHP you need to enable

  1. allow_url_fopen

  2. allow_remote_files

  3. both of above

  4. none of above


Correct Option: A
  1. reading

  2. writing

  3. none of above

  4. both of above


Correct Option: D
  1. The message

  2. The recipient

  3. The header

  4. The subject


Correct Option: D

mysql_connect( ) does not take following parameter

  1. database host

  2. user ID

  3. password

  4. database name


Correct Option: D

Study following steps and determine the correct order (1) Open a connection to MySql server (2) Execute the SQL query (3) Fetch the data from query (4) Select database (5) Close Connection

  1. 1, 4, 2, 3, 5

  2. 4, 1, 2, 3, 5

  3. 1, 5, 4, 2, 1

  4. 4, 1, 3, 2, 5


Correct Option: A

Which of the following is not a session function?

  1. sssion_decode

  2. session_destroy

  3. session_id

  4. session_pw


Correct Option: D
  1. Uplaod is not successful, error occurred

  2. The file uploaded with success

  3. Uploaded file size is 0

  4. File upload progress is 0% completed


Correct Option: B

Which of the following delimiter syntax is PHP's default delimiter syntax

  1. php ?>

  2. ?>


Correct Option: A
- Hide questions