wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SQL PRE-ASSESSMENT (MOTIVATION)

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

It is a very popular, open-source database. And officially pronounced “my Ess Que Ell” (not my sequel).

It handles very large databases; very fast performance.

a)

Oracle

b)

MySQL

c)

SQL

d)

MariaDB

2.

What software is used to access SHELL and PHPMYADMIN?

a)

Control Panel

b)

SQL

c)

XAMPP Control Panel

d)

Oracle

3.

To run XAMPP Control Panel, what ports should be started?

a)

FileZilla and MySQL

b)

Tomcat and Mercury

c)

MySQL and Apache

d)

Apache and Tomcat

4.

To enter MariaDB, what setting should we click to access the MariaDB environment?

a)

Shell

b)

Config

c)

Netstat

d)

Services

5.

To access the localhost, what are the following commands to run access MariaDB?

a)

mysql -u root -p -h 127.0.0.1

b)

sql root 127.0.0.1

c)

ENTER DATABASE;

d)

CREATE DATABASE;

6.

BASIC QUERIES: Which of the following is a correct syntax to select the current version and date?

a)

SELECT version, current date ();

b)

SELECT version (), current_date;

c)

SELECT * version (), current date;

d)

SELECT version (), current date();

7.

BASIC QUERIES: Which of the following commands is the correct syntax to show databases?

a)

CREATE DATABASE;

b)

DISPLAY DATABASES;

c)

SHOW DB;

d)

SHOW DATABASES;

8.

BASIC QUERIES: Which of the following commands is the correct syntax to show tables?

a)

CREATE TABLES;

b)

SHOW TABLES;

c)

DISPLAY TABLES;

d)

DESCRIBE TABLES;

9.

BASIC QUERIES: Which of the following commands is the correct syntax to show table structure?

a)

TABLE STRUCTURE tbl_name;

b)

SHOW tbl_name;

c)

DESCRIBE tbl_name;

d)

STRUCTURE tbl_name;

10.

BASIC QUERIES: Which of the following commands is the correct syntax to use existing database?

a)

USE db_name;

b)

USE DATABASE;

c)

OPEN db_name;

d)

OPEN DATABASE;