JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MySQL interview questions part 1
MySQL interview questions part 1
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. How do I find out all databases starting with ‘test‘?
A. SHOW DATABASES LIKE ‘%test%’;
B. SHOW DATABASES LIKE ‘%test;
C. SHOW DATABASES LIKE ‘'test'%’;
D. SHOW DATABASES LIKE ‘test%’;
Show Correct Answer
Correct Answer is :
SHOW DATABASES LIKE ‘test%’;
2. Which of the following ways are the correct way to get the current date?
A. SELECT CURTIME();
B. SELECT CURDATE();
C. SELECT CURRENT_TIME();
D. All of the above
Show Correct Answer
Correct Answer is :
All of the above
3. How can we get the number of records or rows in a table?
A. Using COUNT
B. Using NUM
C. Using NUMBER
D. Both a and c
Show Correct Answer
Correct Answer is :
Using COUNT
4. When do we use a HAVING clause?
A. To limit the output of a query
B. To limit the output of a query using an aggregate function only
C. When GROUP by is used
D. both b and c
Show Correct Answer
Correct Answer is :
To limit the output of a query using an aggregate function only
5. What is a candidate key?
A. Used to uniquely identify a row
B. Alias for primary key
C. Used to identify a column
D. Alias for foreign key
Show Correct Answer
Correct Answer is :
Used to uniquely identify a row
6. How many local classes can be defined inside a single function?
A. Access Control Language
B. Access Control Lists
C. Automatic Control Lists
D. Automatic Control Language
Show Correct Answer
Correct Answer is :
Access Control Lists
7. All the data members of local class must be ___________
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. Can two different functions have local class with same name?
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. What is the scope of local class?
A. Server administration
B. Tables
C. Stored routines
D. Views
Show Correct Answer
Correct Answer is :
Server administration
10. Can a function, other than the enclosing function of local class, access the class members?
A. 0
B. 1
C. 2
D. 3
Show Correct Answer
Correct Answer is :
3
11. Which among the following is main advantage of using local classes?
A. C
B. C++
C. Python
D. Ruby
Show Correct Answer
Correct Answer is :
C
12. Which among the following best describes member functions?
A. C
B. Perl
C. Python
D. PHP
Show Correct Answer
Correct Answer is :
C
13. How many types of member functions are generally there in C++?
A. PHP
B. Perl
C. Python
D. C
Show Correct Answer
Correct Answer is :
C
14. How can a static member function be called in main function?
A. -lm
B. -ln
C. -lp
D. -lq
Show Correct Answer
Correct Answer is :
-lm
15. What are inline member functions?
A. -e
B. -o
C. -a
D. -b
Show Correct Answer
Correct Answer is :
-o
16. What happens if non static members are used in static member function?
A. memory
B. disk
C. same speed
D. machine dependent
Show Correct Answer
Correct Answer is :
memory
17. Static member functions _____________
A. table_cache
B. cache_table
C. open_cache
D. cache_open
Show Correct Answer
Correct Answer is :
table_cache
18. How to access members of the class inside a member function?
A. Open_tables
B. Opened_tables
C. Close_tables
D. Closed_tables
Show Correct Answer
Correct Answer is :
Opened_tables
19. For overloading “( )”, “[ ]” or “->” operators, a class __________
A. 4
B. 8
C. 16
D. 32
Show Correct Answer
Correct Answer is :
8
20. If a virtual member function is defined, ___________
A. innodb_log_buffer_size
B. innodb_buffer_log_size
C. buffer_log_innodb_size
D. log_buffer_innodb_size
Show Correct Answer
Correct Answer is :
innodb_log_buffer_size
Similar Interview Questions
Search for latest jobs
Find Jobs