ADMBS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/69

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:39 PM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

70 Terms

1
New cards
Which SQL operator keeps duplicate rows?
C. UNION ALL
2
New cards
Which SQL clause arranges records alphabetically?
C. ORDER BY
3
New cards
Which SQL command inserts data into a table?
B. INSERT
4
New cards
Which SQL statement retrieves data?
C. SELECT
5
New cards
Which SQL operator returns rows found in both queries?
B. INTERSECT
6
New cards
Which SQL keyword removes duplicate values?
B. DISTINCT
7
New cards
Which join returns all possible combinations of rows?
B. CROSS JOIN
8
New cards
Which function converts one data type to another?
B. CAST
9
New cards
Which SQL clause filters grouped records?
B. HAVING
10
New cards
Which SQL operator searches for patterns?
C. LIKE
11
New cards
Which SQL command deletes records?
C. DELETE
12
New cards
Which SQL operator specifies a range?
C. BETWEEN
13
New cards
Which join automatically matches columns with the same name?
A. NATURAL JOIN
14
New cards
Which SQL function returns the current date?
A. CURRENT_DATE
15
New cards
Which clause is used to manually specify join conditions?
D. ON
16
New cards
Which join returns all rows from the left table even if no match exists?
B. LEFT OUTER JOIN
17
New cards
Which operator returns rows from the first query not found in the second?
C. MINUS
18
New cards
Which SQL function counts rows?
A. COUNT
19
New cards
A row in a table is called a:
C. Record
20
New cards
A column in a table is called a:
D. Field
21
New cards
Which SQL operator checks equality?
C. =
22
New cards
Which SQL command creates a database?
B. CREATE DATABASE
23
New cards
Which subquery depends on the outer query?
C. Correlated
24
New cards
Which subquery acts as a temporary table?
A. FROM subquery
25
New cards
Which operator returns TRUE if at least one value matches?
B. ANY
26
New cards
Which SQL function calculates total?
C. SUM
27
New cards
Which SQL clause is used to filter records?
B. WHERE
28
New cards
Which SQL command updates existing records?
B. UPDATE
29
New cards
Which function is used to manipulate text values?
D. UPPER
30
New cards
Which SQL operation removes duplicate rows?
A. UNION
31
New cards
Which function checks if a value is numeric?
C. is_numeric()
32
New cards
Which function hashes a password securely?
B. password_hash()
33
New cards
Which superglobal variable collects POST data?
B. $_POST
34
New cards
Which function starts a session?
A. session_start()
35
New cards
PHP variables must begin with:
B. $
36
New cards
Which function verifies a hashed password?
A. password_verify()
37
New cards
$_GET data is visible in the:
C. URL
38
New cards
Which function connects PHP to MySQL?
B. mysqli_connect()
39
New cards
Which function destroys a session?
A. session_destroy()
40
New cards
Which function checks if a variable exists?
A. isset()
41
New cards
Which function checks if a value is empty?
B. empty()
42
New cards
Sessions are stored on the:
C. Server
43
New cards
Which function sends an SQL query?
A. mysqli_query()
44
New cards
PHP was created by:
D. Rasmus Lerdorf
45
New cards
Role-based access control restricts access based on:
C. User role
46
New cards
Which ACID property ensures the permanence of data?
B. Durable
47
New cards
Which ACID property hides intermediate changes?
B. Isolation
48
New cards
Which command cancels a transaction?
C. ROLLBACK
49
New cards
Which command starts a transaction?
A. START TRANSACTION
50
New cards
What is a checkpoint?
A. Recovery point
51
New cards
Which ACID property ensures rules remain valid?
A. Consistency
52
New cards
Default behavior of autocommit?
C. Auto commit
53
New cards
What is COMMIT?
B. Save permanently
54
New cards
Which recovery technique is used after failure?
C. Rollback
55
New cards
Which component restores database?
A. Recovery manager
56
New cards
Which technique keeps copies updated?
B. Disk mirroring
57
New cards
What is an aborted transaction?
C. Unexpected end
58
New cards
Which is NOT a failure cause?
D. Valid input
59
New cards
Which ACID property ensures all-or-nothing?
C. Atomicity
60
New cards
Purpose of backup facility?
A. Restore data
61
New cards
Display employee names with their department names.
B. SELECT name, dept_name FROM Employees JOIN Departments ON Employees.dept_id = Departments.dept_id;
62
New cards
Show all combinations of employees and departments.
B. SELECT * FROM Employees CROSS JOIN Departments;
63
New cards
Show all employees including those without a department.
B. SELECT * FROM Employees LEFT JOIN Departments ON Employees.dept_id = Departments.dept_id;
64
New cards
Display department IDs found in both tables.
B. SELECT dept_id FROM Employees INTERSECT SELECT dept_id FROM Departments;
65
New cards
Combine all department IDs including duplicates.
B. SELECT dept_id FROM Employees UNION ALL SELECT dept_id FROM Departments;
66
New cards
Display employees whose department exists in Departments.
B. SELECT * FROM Employees WHERE dept_id IN (SELECT dept_id FROM Departments);
67
New cards
Display employees with salary greater than any employee in dept 10.
A. SELECT * FROM Employees WHERE salary > ANY (SELECT salary FROM Employees WHERE dept_id = 10);
68
New cards
Display employee names in uppercase.
B. SELECT UPPER(name) FROM Employees;
69
New cards
Count employees per department.
B. SELECT dept_id, COUNT(emp_id) FROM Employees GROUP BY dept_id;
70
New cards
Display departments with total salary greater than 20000.
B. SELECT dept_id, SUM(salary) FROM Employees GROUP BY dept_id HAVING SUM(salary) > 20000;