PACE GK ACADEMY
Quiz Mode
Mock Test
Make Paper
Login
PACE GK ACADEMY
Home
Past Papers
PPSC Past Papers
FPSC Past Papers
ITS Past Papers
ECP Past Papers
MOD Past Papers
ASF Past Papers
Islamabad Police Past Papers
FIA Past Papers
FGEI Past Papers
ANF Past Papers
Current Affairs
Yearly Current Affairs (PACE)
Current Affairs Month Wise (PACE)
Pak Current Affairs (PACE)
World Current Affairs (PACE)
Current Affairs Past Papers (FPSC)
Pak Current Affairs (PPSC)
World Current Affairs (PPSC)
All-Subjects
Computer (PACE)
Pedagogy (PACE)
Federal Investigation Agency Act 1974 (PACE)
Analytical Ability (PACE)
Code of Criminal Procedure 1898 (PACE)
Constitution Of Pakistan (PACE)
Pakistan Penal Code 1860 (PACE)
Punjab Prevention Of Hoarding Act 2020 MCQS (PACE)
Law (FPSC)
General Knowledge (PPSC)
Pakistan Studies (PPSC)
Islamic Studies (PPSC)
World Current Affairs (PPSC)
Pakistan Current Affairs (PPSC)
Mathematics (PPSC)
English (PPSC)
Urdu (PPSC)
Everyday Science (PPSC)
Computer Skills (PPSC)
Geography (PPSC)
Audits & Accounting (PPSC)
Sports (PPSC)
Sociology (PPSC)
Personalities (PPSC)
Jobs
Success Stories
Articles & Insights
Login
MySQL (PACE)
Download Pdf
Current Affairs
See All Subjects
Current Affairs Past Papers (FPSC)
Current Affairs Month Wise
Pak Current Affairs (PACE)
World Current Affairs (PACE)
Pak Current Affairs (PPSC)
World Current Affairs (PPSC)
Q.1
The embedded server library containing the My SQL server linkable into applications is?
libmysqld
libmysqla
libmysqlb
libmysqlc
(A)
Q.2
Which system variable controls the size of the table cache?
cache_open
table_cache
cache_table
open_cache
(B)
Q.3
The character that the MySQL client program recognizes as a statement delimiter is?
:
,
;
.
(C)
Q.4
A synonym for CHARAC TER SET is
CHSET
CSET
CHARSET
CHCSET
(C)
Q.5
The number of values that can be returned froma given stored function is?
3
0
1
2
(C)
Q.6
The default storage engine used is?
ARCHIVE
EXAMPLE
NDB
MylSAM
(D)
Q.7
What is the maximum length for alias names in terms of characters?
32
64
128
256
(C)
Q.8
The variable used as a handle to an open file is?
h
dbh
sth
fh
(D)
Q.9
The LOCAL capability for client library is enabled by?
enable-local-file
enabled-local-file
enable-local-infile
enable-global-file
(C)
Q.10
What does RTF refer to?
Right Text Format
Rich Text Format
Rich Text Function
Right Text Function
(B)
Q.11
The string function that returns the index of the first occurrence of substring is?
INSERT()
INSTR()
INSTRING()
INFSTR()
(B)
Q.12
The BIGINT precision is of bit_____?
16
32
64
128
(C)
Q.13
What jobs "Query Optimizer" perform in Mysql?
Permissions
Determine the efficient way to executea query
Syntax errors
All of the mentioned
(B)
Q.14
The function used to convert a string to an int is?
INET STOI()
INET ATON()
INET NTOA(
INET_ITOS()
(A)
Q.15
Which statement can be used for modifying the definition for an existing table?
FROM
ALTER
Modified
SELECT
(B)
Q.16
The keyword used with UNION that does not retain duplicate rows is?
DISTINCT
ALL
NARROW
STRICT
(A)
Q.17
The maximum length of the varchar columns is?
Upto 65, 567 bytes
Upto 65, 535 bytes
Upto 256 bytes
None of the mentioned
(B)
Q.18
The server listens on a network port for TCP/IP connections unless started with the option?
Quit-networking
networking
Skip-networking
Skip-networks
(C)
Q.19
Which of these take more space?
indeterminate
variable length
same
fixed length
(D)
Q.20
Find the missing clause from the following SQL statement?
SELECT
FROM
WHERE
None of the mentioned
(B)
Q.21
Mysql command line tool is used to show "how many rows are returned and how long SQL command took to execute?
False
True
undetermined
Depend
(C)
Q.22
What is the statement used to select a default database?
SCHEMA
USE
CREATE
DROP
(B)
Q.23
Which declaration represents that "character data will consume the same number of bytes as declared and is right padded"?
Varchar
Char
Both Char and Varchar
None of the mentioned
(B)
Q.24
Which operator is used to check the expression is not "NULL"?
ON
IS NULL
NOT NULL
None of the mentioned
(C)
Q.25
The functions in Perl DBI called?
programs
functions
procedures
methods
(D)
Q.26
In MySQL, the default size of the key buffer in MB is?
32
4
8
16
(C)
Q.27
The spatial datatype used to store a curve is?
POLYGON
GEOMETRY
POINT
LINESTRING
(D)
Q.28
What is abc in the following MySQL statement?
column name
table name
search string
database name
(A)
Q.29
Which of the following characters cannot be used as a delimiter?
/
,
.
;
(A)
Q.30
The context in which the privilege 'CREATE TABLESPACE' applies is?
Views
Server administration
Tables
Stored routines
(B)
Q.31
Which grant table scope columns are case insensitive?
Db
Host
User
Password
(C)
Q.32
Which of these can be used in place of MYSQL_SERVER_VERSION?
MYSQL ID
LIBMYSQL VERSION
LIBMYSQL VERSION ID
MYSQL VERSION ID
(D)
Q.33
Which of these is also known as a virtual table?
VIEW
SCHEMA
DATABASE
JOIN
(A)
Q.34
Which Clause is used to sort the stored data in alphabetical order?
UPDATE
ORDER by CLAUSE
MODIFY
ALTER
(B)
Q.35
Prior to MySQL 6.0, utf8 was?
9 bytes
3 bytes
4 bytes
8 bytes
(B)
Q.36
The disk data that the FILES table in INFORMATION_SCHEMA stores is?
NCD
NDB
NBD
NBK
(B)
Q.37
What is the durability property of transactions?
transaction effects are recorded permanently
statements form a logic unit
database remains consistent
one transaction does not affectthe other
(A)
Q.38
Which among the following operators is/are belongs to "Equality conditions"?
<>
!=
>/<
=
(C)
Q.39
The option that supplies the pathname to root directory of MySQL installation is?
socket
basedir
datadir
port
(B)
Q.40
Which of these grant table scope columns is case insensitive?
DЬ
Host
User
Password
(D)
Q.41
Keyword "ASC" and "DESC" cannot be used without which clause in Mysql?
HAVING
ORDER BY
GROUP BY
SELECT
(B)
Q.42
The statement used to selecta default database is?
SCHEMA
USE
CREATE
DROP
(B)
Q.43
What will be the output of the following SQL statement?
Shows only columns person_id
Show all columns but only those rows which belongs to person_id=1
Show all columns and rows
None of the mentioned
(B)
Q.44
FULLTEXT indexes can be created only for?
TRANSITION
MylSAM
InnoDB
MEMORY
(B)
Q.45
The statement to change the table name is?
RENAME
CHANGE
CHANGENAME
CHANGENM
(A)
Q.46
Which program reads the statement from a binary log?
mysqlimport
mysql_config
mysqlbinlog
mysqldump
(C)
Q.47
To how many of the following does the prepared-statement API apply to?
4
1
2
3
(C)
Q.48
The line that is not used to turn on the event scheduler is?
Total of four digits, not distributed uniformly
Total of four digits, two to the left of decimal and two to the right of decimal
Total of six digits
None of the mentioned
(B)
Q.49
The collations this statement lists are?
names ending in utf8%
names beginning with utf8
names ending with utf8
names containing utf8% anywhere
(B)
Q.50
The variable which represents the default time zone of the MySQL server is?
system_time
time_zone
system_time_zone
date_and_time
(C)
Q.51
REPAIR TABLE works with how many of the following?
0
1
3
2
(B)
Q.52
Which among the following is the correct representation of "float(1,1)"?
Total of 2 digit, one digit at right of the decimal, one digit at left of the decimal
Total of 1 digit
Total of 2 digit
None of the mentioned
(A)
Q.53
Find odd one out?
ORDER BY
GROUP BY
DESC
ASC
(B)
Q.54
hich statement suspends the replication related activity of the slave server?
GET SLAVE
RESUME SLAVE
START SLAVE
STOP SLAVE
(D)
Q.55
The statement used to create a trigger is?
PRODUCE TRIGGERS
CREATE TRIGGER
CREATE TRIGGERS
PRODUCE TRIGGER
(B)
Q.56
Which of these has higher priority?
machine dependent
writes
reads
same priority
(B)
Q.57
The grant table scope columns that is case insensitive is?
Db
Host
User
Password
(C)
Q.58
Which storage engine in MySQL provides foreign key support?
TRANSACTION
InnoDB
MylSAM
MEMORY
(B)
Q.59
Which storage engine is not available in My SQL 5.0?
InnoDB
ARCHIVE
Falcon
NDB
(C)
Q.60
The system variable in MySQL server that enables to configure the SQL mode is?
sql enable
sql_config
sql_mode
sql server
(C)
Q.61
What does Control-_do in MySQL input editor?
deletes the current line
copies to clipboard
pastes from clipboard
undoes last change
(D)
Q.62
How are identifiers quoted in MySQL?
can't be quoted
single quotes
double quotes
backticks
(D)
Q.63
What is data in a MySQL database organized into?
File systems
Objects
Tables
Networks
(C)
Q.64
Which type of database management system is MySQL?
Network
Object-oriented
Hierarchical
Relational
(D)
Q.65
How is communication established with MySQL?
APIs
SQL
Network calls
A programming language like C++
(C)