Novartis Previous Years Solved Sample Placement Papers
-
Which of the following is a PHP resource?
A. Domxml document
B. Odbc link
C. File
D. All of the above Answer: Option D
-
In multidimensional arrays rather than a single key the values are stored in:
A. Sequence of key values Answer: Option A
B. 2 keys
C. Linear style
D. None of them
-
PHP arrays are also called as:
A. Vector arrays
B. Perl arrays
C. Hashes Answer: Option C
D. All of them
-
In vector arrays the elements must have:
A. Same size
B. Same type Answer: Option B
C. Different size
D. Different type
-
As compared to associative arrays, vector arrays are much:
A. Faster Answer: Option A
B. Slower
C. Stable
D. None of them
-
Which function returns an array consisting of associative key/value pairs?
A. count()
B. array_count()
C. array_count_values() Answer: Option C
D. count_values()
-
The updated MySQL extension released with PHP 5 is typically referred to as:
A. MySQL
B. mysql
C. mysqli Answer: Option C
D. mysqly
-
Which one of the following statements is used to create a table?
A. CREATE TABLE table_name (column_name column_type); Answer: Option A
B. CREATE table_name (column_type column_name);
C. CREATE table_name (column_name column_type);
D. CREATE TABLE table_name (column_type column_name);
-
Which one of the following statements can be used to select the database?
A. $mysqli=select_db(‘databasename’);
B. mysqli=select_db(‘databasename’);
C. mysqli->select_db(‘databasename’);
D. $mysqli->select_db(‘databasename’); Answer: Option D
-
Which of the methods are used to manage result sets using both associative and indexed arrays?
A. get_array() and get_row()
B. get_array() and get_column()
C. fetch_array() and fetch_row() Answer: Option C
D. fetch_array() and fetch_column()
-
Which two predefined variables are used to retrieve information from forms?
A. $GET & $SET
B. $_GET & $_SET Answer: Option B
C. $__GET & $__SET
D. GET & SET
-
When you use the $_GET variable to collect data, the data is visible to:
A. None
B. Only you
C. Everyone Answer: Option C
D. Selected few
-
When you use the $_POST variable to collect data, the data is visible to:
A. None
B. Only you Answer: Option B
C. Everyone
D. Selected few