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
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
Right Answer
Q.2
Which system variable controls the size of the table cache?
cache_open
table_cache
cache_table
open_cache
Right Answer
Q.3
The character that the MySQL client program recognizes as a statement delimiter is?
:
,
;
.
Right Answer
Q.4
A synonym for CHARAC TER SET is
CHSET
CSET
CHARSET
CHCSET
Right Answer
Q.5
The number of values that can be returned froma given stored function is?
3
0
1
2
Right Answer
Q.6
The default storage engine used is?
ARCHIVE
EXAMPLE
NDB
MylSAM
Right Answer
Q.7
What is the maximum length for alias names in terms of characters?
32
64
128
256
Right Answer
Q.8
The variable used as a handle to an open file is?
h
dbh
sth
fh
Right Answer
Q.9
The LOCAL capability for client library is enabled by?
enable-local-file
enabled-local-file
enable-local-infile
enable-global-file
Right Answer
Q.10
What does RTF refer to?
Right Text Format
Rich Text Format
Rich Text Function
Right Text Function
Right Answer
Q.11
The string function that returns the index of the first occurrence of substring is?
INSERT()
INSTR()
INSTRING()
INFSTR()
Right Answer
Q.12
The BIGINT precision is of bit_____?
16
32
64
128
Right Answer
Q.13
What jobs "Query Optimizer" perform in Mysql?
Permissions
Determine the efficient way to executea query
Syntax errors
All of the mentioned
Right Answer
Q.14
The function used to convert a string to an int is?
INET STOI()
INET ATON()
INET NTOA(
INET_ITOS()
Right Answer
Q.15
Which statement can be used for modifying the definition for an existing table?
FROM
ALTER
Modified
SELECT
Right Answer
Q.16
The keyword used with UNION that does not retain duplicate rows is?
DISTINCT
ALL
NARROW
STRICT
Right Answer
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
Right Answer
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
Right Answer
Q.19
Which of these take more space?
indeterminate
variable length
same
fixed length
Right Answer
Q.20
Find the missing clause from the following SQL statement?
SELECT
FROM
WHERE
None of the mentioned
Right Answer
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
Right Answer
Q.22
What is the statement used to select a default database?
SCHEMA
USE
CREATE
DROP
Right Answer
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
Right Answer
Q.24
Which operator is used to check the expression is not "NULL"?
ON
IS NULL
NOT NULL
None of the mentioned
Right Answer
Q.25
The functions in Perl DBI called?
programs
functions
procedures
methods
Right Answer
Q.26
In MySQL, the default size of the key buffer in MB is?
32
4
8
16
Right Answer
Q.27
The spatial datatype used to store a curve is?
POLYGON
GEOMETRY
POINT
LINESTRING
Right Answer
Q.28
What is abc in the following MySQL statement?
column name
table name
search string
database name
Right Answer
Q.29
Which of the following characters cannot be used as a delimiter?
/
,
.
;
Right Answer
Q.30
The context in which the privilege 'CREATE TABLESPACE' applies is?
Views
Server administration
Tables
Stored routines
Right Answer
Q.31
Which grant table scope columns are case insensitive?
Db
Host
User
Password
Right Answer
Q.32
Which of these can be used in place of MYSQL_SERVER_VERSION?
MYSQL ID
LIBMYSQL VERSION
LIBMYSQL VERSION ID
MYSQL VERSION ID
Right Answer
Q.33
Which of these is also known as a virtual table?
VIEW
SCHEMA
DATABASE
JOIN
Right Answer
Q.34
Which Clause is used to sort the stored data in alphabetical order?
UPDATE
ORDER by CLAUSE
MODIFY
ALTER
Right Answer
Q.35
Prior to MySQL 6.0, utf8 was?
9 bytes
3 bytes
4 bytes
8 bytes
Right Answer
Q.36
The disk data that the FILES table in INFORMATION_SCHEMA stores is?
NCD
NDB
NBD
NBK
Right Answer
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
Right Answer
Q.38
Which among the following operators is/are belongs to "Equality conditions"?
<>
!=
>/<
=
Right Answer
Q.39
The option that supplies the pathname to root directory of MySQL installation is?
socket
basedir
datadir
port
Right Answer
Q.40
Which of these grant table scope columns is case insensitive?
DЬ
Host
User
Password
Right Answer
Q.41
Keyword "ASC" and "DESC" cannot be used without which clause in Mysql?
HAVING
ORDER BY
GROUP BY
SELECT
Right Answer
Q.42
The statement used to selecta default database is?
SCHEMA
USE
CREATE
DROP
Right Answer
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
Right Answer
Q.44
FULLTEXT indexes can be created only for?
TRANSITION
MylSAM
InnoDB
MEMORY
Right Answer
Q.45
The statement to change the table name is?
RENAME
CHANGE
CHANGENAME
CHANGENM
Right Answer
Q.46
Which program reads the statement from a binary log?
mysqlimport
mysql_config
mysqlbinlog
mysqldump
Right Answer
Q.47
To how many of the following does the prepared-statement API apply to?
4
1
2
3
Right Answer
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
Right Answer
Q.49
The collations this statement lists are?
names ending in utf8%
names beginning with utf8
names ending with utf8
names containing utf8% anywhere
Right Answer
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
Right Answer
Q.51
REPAIR TABLE works with how many of the following?
0
1
3
2
Right Answer
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
Right Answer
Q.53
Find odd one out?
ORDER BY
GROUP BY
DESC
ASC
Right Answer
Q.54
hich statement suspends the replication related activity of the slave server?
GET SLAVE
RESUME SLAVE
START SLAVE
STOP SLAVE
Right Answer
Q.55
The statement used to create a trigger is?
PRODUCE TRIGGERS
CREATE TRIGGER
CREATE TRIGGERS
PRODUCE TRIGGER
Right Answer
Q.56
Which of these has higher priority?
machine dependent
writes
reads
same priority
Right Answer
Q.57
The grant table scope columns that is case insensitive is?
Db
Host
User
Password
Right Answer
Q.58
Which storage engine in MySQL provides foreign key support?
TRANSACTION
InnoDB
MylSAM
MEMORY
Right Answer
Q.59
Which storage engine is not available in My SQL 5.0?
InnoDB
ARCHIVE
Falcon
NDB
Right Answer
Q.60
The system variable in MySQL server that enables to configure the SQL mode is?
sql enable
sql_config
sql_mode
sql server
Right Answer
Q.61
What does Control-_do in MySQL input editor?
deletes the current line
copies to clipboard
pastes from clipboard
undoes last change
Right Answer
Q.62
How are identifiers quoted in MySQL?
can't be quoted
single quotes
double quotes
backticks
Right Answer
Q.63
What is data in a MySQL database organized into?
File systems
Objects
Tables
Networks
Right Answer
Q.64
Which type of database management system is MySQL?
Network
Object-oriented
Hierarchical
Relational
Right Answer
Q.65
How is communication established with MySQL?
APIs
SQL
Network calls
A programming language like C++
Right Answer