R4RIN
Articles
Java 8
MCQS
SQL MCQ Quiz Hub
SQL MCQ SET 4
Choose a topic to test your knowledge and improve your SQL skills
1. The return value from operations returning a row count is ______
$rc
$rv
$rows
$ary
2. Which mode of search is the search string parsed into words and the search looks for rows?
Boolean mode
Natural language
Query expansion
Cross mode
3. The indicator of presence/absence of a word in search is used in the mode _____
Natural language
Boolean mode
Boolean mode
Cross mode
4. The numbers that are prefixed with ‘0x’ are in base ______
8
16
32
64
5. What is the escape sequence for carriage return?
‘c’
‘ ’
‘’
‘z’
6. What is the datatype for single precision floating point number?
FLOAT
DOUBLE
INT
BIGINT
7. RTF refers to ________
Rich Text Format
Right Text Format
Rich Text Function
Right Text Function
8. The function returning an array of row values is ______________
fetchrow_array()
fetchrow_arrayref()
fetch()
fetchrow_hashref()
9. The function returning reference to hash of row values is ______________
fetchrow_array()
fetchrow_arrayref()
fetch()
fetchrow_hashref()
10. fetchrow_hashref() returns reference to hash of row values keyed by _____
row name
column name
table name
database name
11. The function returning reference to array of row values is ______
fetchrow_array()
fetchrow_arrayref()
fetch()
fetchrow_hashref()
12. Illegal values converted to the appropriate ‘zero’ value for ________
Numeric
String
ENUM
TIME
13. The column attribute provides unique numbers for identification is _______
AUTO_INCREMENT
UNSIGNED
IDENTIFY
DESCRIBE
14. The module that links DBI to the web is ________
CGI.pn
CGI.pem
CGI.pm
CGI.po
15. CGI stands for ________
Computer Gateway Interface
Common Gateway Interface
Computer Generated Interface
Common Generated Interface
16. Which line is written at the top of the script to write a Perl script using CGI.pm?
use this CGI
put CGI
use CGI
include CGI
17. By default, the AUTO_INCREMENT sequences begin at __________
0
1
-1
2
18. What does the expression ’12 DIV 5′ evaluate to?
2.4
2
error
0
19. What does ‘abc’ || ‘xyz’ result in if the PIPES_AS_CONCAT is disabled?
1
0
error
-1
20. The AUTO_INCREMENT column attribute is best used with ______________
FLOAT
INT
CHARACTER
DOUBLE
21. The datatype best suited to store currency values is ______________
INT
FLOAT
DOUBLE
DECIMAL
22. The output from PHP is __________
statically generated
dynamically generated
not generated
no output
23. PHP variables are preceded by __________
_
@
$
&
24. The datatype best suited to store currency values is __________
INT
FLOAT
DOUBLE
DECIMAL
25. What returns a result to the client?
Stored functions
Stored procedures
Triggers
Events
26. What is defined to execute when the table is modified only?
Stored functions
Stored procedures
Triggers
Events
27. Which statement is used to produce a stored function?
PRODUCE FUNCTION
CREATE FUNCTION
PRODUCE PROCEDURE
CREATE PROCEDURE
28. The number of values that can be returned from a given stored function is ______________
0
1
2
3
29. The statement used to create a trigger is ______________
CREATE TRIGGER
CREATE TRIGGERS
PRODUCE TRIGGER
PRODUCE TRIGGERS
30. In PHP, if $a represents an array with numeric indices, how is the first element accessed?
$a[1]
$a[0]
$a.1
$a.0
31. In PHP, which operator is used to access property of an object?
.
*
->
@
32. DBI scripts are located in the directory ______________
cgi-inc
cgi-bin
cgi-usr
cgi-perl
33. A stored program associated with a schedule is _____________
Trigger
Event
Stored function
Stored procedure
34. The line used to turn on the event scheduler is ______________
event_scheduler = ON
eventscheduler = ON
event_scheduler_ON
events_scheduler_ON
35. What is the creation of a stored program similar to?
Trigger
Event
View
Table
36. When the security context enables carefully written stored programs to be set up that provide controlled access to tables for users, it is called __________
bad
good
illegal
fare
37. What is the maximum number of indexes on MyISAM table?
0
1
2
more than 1
38. The hub of a MySQL installation is _______
mysqla
mysqlb
mysqlc
mysqld
39. The tool for copying databases is _______
mysql
mysqlcheck
mysqlhotcopy
mysqlisamchk
40. Which statement is used to check how MySQL would execute a SELECT query?
TELL
SHOW
DISPLAY
EXPLAIN
41. What is used to perform an analysis of key values by the server?
ANALYZE KEYS
ANALYZE TABLE
PERFORM ANALYSIS
PERFORM TABLE ANALYSIS
42. The function used to convert an int to string is ________
INET_ATON()
INET_ATON()
INET_ITOS()
INET_STOI()
43. The function used to convert a string to an int is ____
INET_ATON()
INET_NTOA()
INET_ITOS()
INET_STOI()
44. Without LOCAL, LOAD DATA is ____
less efficient
more efficient
same speed
arbitrary
45. The log in which data changes received from a replication master server are written are ____
error log
general query log
binary log
relay log
46. Which of these is the metadata log?
error log
ddl log
binary log
relay log
47. The max_binlog_cache_size system variable has default size _____
1 GB
2 GB
4 GB
8 GB
48. The system variable controls the size of the table cache _______
table_cache
cache_table
open_cache
cache_open
49. Which of these exports table definitions and contents?
mysqldump
mysqladmin
mysqlimport
mysqlexport
50. MySQL uses security based on ACL which stands for ______
Access Control Language
Access Control Lists
Automatic Control Lists
Automatic Control Language
Submit