CPT 231 Midterm Part 1

CPT 231 Midterm Part 1

University

40 Qs

quiz-placeholder

Similar activities

Midterm Exam - Info Mgt - Part 1

Midterm Exam - Info Mgt - Part 1

University

40 Qs

Ujian Tengah Semester (UTS) Komputasi Awan

Ujian Tengah Semester (UTS) Komputasi Awan

University

35 Qs

Round 1 (Computer)

Round 1 (Computer)

University

40 Qs

Викторина по tkinter

Викторина по tkinter

University

40 Qs

KISI-KISI PAS BTIK

KISI-KISI PAS BTIK

12th Grade - University

39 Qs

Sistem Basis Data UTS Latihan

Sistem Basis Data UTS Latihan

University

42 Qs

Linear Data Structures Quiz

Linear Data Structures Quiz

University

40 Qs

Classification and Clustering

Classification and Clustering

University

35 Qs

CPT 231 Midterm Part 1

CPT 231 Midterm Part 1

Assessment

Quiz

Computers

University

Easy

Created by

Reza Naqvi

Used 3+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does a relational database use to uniquely identify each row in a table?

indexes

foreign keys

non-primary keys

primary keys

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Assuming the third row in the OrderOptions table has an OrderOptionsID of 3, what does the following SQL statement do?

DELETE FROM OrderOptions

   WHERE OrderOptionsID = 3

It deletes the OrderOptionsID column from the OrderOptions table

It deletes the first three rows from the OrderOptions table

It deletes the row in the OrderOptions table that has an ID of 3

It deletes all rows except the first three rows from the OrderOptions table

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Code example 19-1

SELECT VendorName, InvoiceNumber, InvoiceDate, InvoiceTotal

FROM Vendors INNER JOIN Invoices

   ON Vendors.VendorID = Invoices.VendorID

WHERE InvoiceTotal >= 500

ORDER BY VendorName DESC

(Refer to code example 19-1.) How many columns will the result set have?

7

6

5

4

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

To communicate with a DBMS, the application software sends

command objects

SQL Queries

dataset requests

primary keys

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does the following SQL statement add to the Terms table?

INSERT INTO Terms (TermsDueDays) VALUES (90)

A row with a value of 90 for the TermsDueDays column

90 rows with a column of TermsDueDays

All rows where the TermsDueDays column has a value of 90

A TermsDueDays column with a default value of 90

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following can a SELECT statement not do?

Retrieve data

Create calculated fields

Combine data from two tables

Modify selected data

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The data that’s retrieved by a SELECT statement is called a

check constraint

SQL query

data reader

result set

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?