Filters
Question type

Study Flashcards

What functions count elements in an array?


A) Count
B) Size
C) Array_Count
D) Count_array

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

There are three different kind of arrays:


A) Numeric array, String array, Multidimensional array
B) Numeric array, Associative array, Dimensional array
C) Numeric array, Associative array, Multidimensional array
D) Const array, Associative array, Multidimensional array

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Which of the looping statements is/are supported by PHP? i. for loop ii. while loop iii. do-while loop iv. foreach loop


A) i) and ii)
B) i) , ii) and iii)
C) All of the above
D) None of the above

E) B) and C)
F) B) and D)

Correct Answer

verifed

verified

C

Which of the following DBMSs do not have a native PHP extension?


A) MySQL
B) IBM DB/2
C) Microsoft SQL Server
D) None of the above

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

We can use ___ to comment a single line? i. /? ii. // iii. # iv. /* */


A) Only ii)
B) i) , iii) and iv)
C) ii) , iii) and iv)
D) Both ii) and iv)

E) All of the above
F) B) and D)

Correct Answer

verifed

verified

What will be the output of the following php code? <?php $num = "1"; $num1 = "2"; print $num+$num1; ?>


A) 3
B) 1+2
C) Error
D) 12

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

If $a = 12 what will be returned when ($a == 12) ? 5: 1 is executed?


A) 12
B) 1
C) Error
D) 5

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

Which array function checks if the specified key exists in the array


A) array_key_exist()
B) array_key_exists()
C) array_keys_exists()
D) arrays_key_exists()

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

In PHP in order to access MySQL database you will use:


A) mysqlconnect() function
B) mysql-connect() function
C) mysql_connect() function
D) sql_connect() function

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Which of following variables can be assigned a value to it? i. $3hello ii. $_hello iii. $this iv. $This


A) All of the above
B) Only ii)
C) ii) , iii) and iv)
D) ii) and iv)

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

What function computes the difference of arrays?


A) array_diff
B) diff_array
C) arrays_diff
D) diff_arrays

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Which of the following is/are a PHP code editor? i. Notepad ii. Notepad++ iii. Adobe Dreamweaver iv. PDT


A) Only iv)
B) Only iii)
C) i) , ii) and iii)
D) All of the above

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

Which of the below statements is equivalent to $add += $add ?


A) $add = $add
B) $add = $add +$add
C) $add = $add + 1
D) $add = $add + $add + 1

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

Who is the father of PHP?


A) Rasmus Lerdorf
B) Willam Makepiece
C) Drek Kolkevi
D) List Barely

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

Which of the conditional statements is/are supported by PHP? i. if statements ii. if-else statements iii. if-elseif statements iv. switch statements


A) Only i)
B) i) , ii) and iv)
C) ii) , iii) and iv)
D) All of the above

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

D

Which version of PHP introduced Try/catch Exception?


A) PHP 4
B) PHP 5
C) PHP 5.3
D) PHP 6

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

What will be the output of the following PHP code? <?php $a = "clue"; $a .= "get"; echo "$a"; ?>


A) get
B) true
C) false
D) clueget

E) None of the above
F) All of the above

Correct Answer

verifed

verified

PHP files have a default file extension of..


A) .html
B) .xml
C) .php
D) .ph

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

C

Showing 1 - 18 of 18

Related Exams

Show Answer