Quiz
Relational Databases: Tables, Rows and Columns
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (29)
11 Data in a database is stored in:
- AA. Tables
- BB. Queries
- CC. Data types
- DD. Stored procedures
2What is a table in a relational database? A. A collection of rows and column that stores data in a structured format.
- AA collection of rows and column that stores data in a structured format.
- BB. A graphical representation of data relationships between multiple entities
- CC. A programming construct used to perform calculations in a database
- DD. A command used to retrieve data from a database
3The component that holds information for a single entry in a table is called a:
- AA. Data type
- BB. Row
- CC. Column
- DD. Attribute
4This question requires that you evaluate the underlined text to determine if it is correct. A row holds information for a single record in a table.(row is underlined) Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct D. View
- AA. No change is needed
- BB. Column
- CC. Data type
- DD. View
5This question requires that you evaluate the underlined text to determine if it is correct. In a database table, each column represents a unique record. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct
- AA. No change is needed
- BB. Table
- CC. Index
- DD. Row
6You need to store the contact information for each student in your school database.
You should store each student's information in a:- AA. Stored procedure
- BB. Function
- CC. Row
- DD. Variable
77 Which of the following best describes a column in a table? A. A single record in the table. B. A unique identifier for the table. C. A vertical collection of data for a specific attribute D. A link between two tab
- AA. A single record in the table
- BB. A unique identifier for the table
- Cc. A vertical collection of data for a specific attribute
- DD. A link between two tab
8You are structuring a table in a relational database. Instructions: For each of the following statement, select Yes if the statement is true. Otherwise, select No. A. Each value in a field in a table must be unique. B. Each row in a table must be unique. C. Each column name in a table must be unique.
- AA. Each value in a field in a table must be unique.
- BB. Each row in a table must be unique.
- CC. Each column name in a table must be unique.
9You need to store the first name, last name, and student ID for 100 students.
This information will be stored in a table as:
A. 100 items and three cells.
B. 100 rows and three columns.
C. three rows and 100 columns.
D. three items and 100 cell- AA. 100 items and three cells.
- BB. 100 rows and three columns.
- Cc. three rows and 100 columns.
- DD. three items and 100 cell
10Which two elements are required to define a column? (Choose two.) A. A name B. A key C. An index D. A data type
- AA name
- BB. A key
- CC. An index
- DD. A data type
1111
What defines the amount of storage space that is allocated to a value in a column?
A. format
B. key
C. data type
D. validator- AA. format
- BB. key
- CC. data type
- DD. validator
1212
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which
data type should you use?- AA. INTEGER
- BB. DOUBLE
- CC. COUNT
- DD. FLOAT
1313
You need to store whole numbers ranging from 1 to 100. This number range will never change. Which data type
should you choose?
A. Bit
B. Tinyint
C. Smallint
D. Integer- AA. Bit
- BB. Tinyint
- CC. Smallint
- DD. Integer
1414
You have a column that will only contain values from 0 to 1024. What is the most economical data type to use for
the column?
A. INT
B. TINYINT
C. DECIMAL(3)
D. SMALLINT- AA. INT
- BB. TINYINT
- CC. DECIMAL(3)
- DD. SMALLINT
1515
When you are defining the cost of a product, it is best to use the ___________ data type.
a. int
b. varchar
c. decimal
d. bit- Aa. int
- Bb. varchar
- Cc. decimal
- Dd. bit
1616
What type of data type would you use to store true/false or yes/no answers?
A. Int
B. Float
C. Bit
D. Char- AA. Int
- BB. Float
- CC. Bit
- DD. Char
1717
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of
storage space that is used. Which data type should you use?
A. VARCHAR (3, 30)
B. CHAR (3, 30)
C. VARCHAR (30)
D. CHAR (30)- AA. VARCHAR (3, 30)
- BB. CHAR (3, 30)
- CC. VARCHAR (30)
- DD. CHAR (30)
1818
You create a table that stores product names. You need to record the product names in different language. Which
data type should you use?
A. CHAR
B. NCHAR
C. TEXT
D. VARCHAR- Aa
- Bb
- Cc
- Dd
1919
You are creating a table to store customer data. The AccountNumber column uses values that always consist of
one letter and four digits. Which data type should you use for the AccountNumber column?
A. CHAR
B. BYTE
C. DOUBLE
D. SMALLINT- Aa
- Bb
- Cc
- Dd
2020
For each of the following statements, select Yes if the statement is true and No if it is not.
A. Char(size) holds a fixed-length string.
B. Text holds a fixed-length string.
C. Varchar(size) can hold a string of differing lengths.- Aa
- Bb
- Cc
2121
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each
correct selection is worth one point.
A. The VARCHAR data type contains only numeric characters.
B. The NUMERIC data type contains only numbers that have decimal places.
C. The INT data type contains only whole numbers.- Aa
- Bb
- Cc
2223
You work at a coffee shop. They ask you to set up a website that stores charges on purchases.
You need to recommend a data type in a database table to run financial functions against the charged amounts.
Which data type should you recommend?
A. Decimal // Money
B. Bit
C. Varchar
D. Binary- Aa
- Bb
- Cc
- Dd
2324
Which of the following numbers can be stored in a field of type DECIMAL(4, 1) in SQL Server?
a) 16.2 b) 116.2 c) 16.21 d) 1116.2 e) 1116.21- Aa
- Bb
- Cc
- Dd
2425
What is the primary difference between DATETIME and DATETIME2 in SQL Server?
A. DATETIME2 supports a larger date range and higher precision for fractional seconds
B. DATETIME supports a larger date range than DATETIME2
C. DATETIME2 stores only time values
D. DATETIME is used only for legacy systems- Aa
- Bb
- Cc
2527
Which of the following values can be stored in a field of type DATETIME2(3)?
a) 2025-01-04 12:30:45.1234567
b) 2025-01-04 12:30:45.123
c) 2025-01-04 24:30:45.123
d) 753-01-01 00:00:00
e) 9999-12-31 23:59:59.999- Aa
- Bb
- Cc
- Dd
- Ee
26Which of the following values can be stored in a field of type SMALLDATETIME?
a) 2025-01-04 12:30:00
b) 1753-01-01 00:00:00
c) 1899-12-31 23:59:35
d) 2079-06-06 23:59:20
e) 2079-06-06 23:59:40- Aa
- Bb
- Cc
- Dd
- Ee
27Which constraint ensures a unique value in the ID column for each customer? A. DISTINCT B. FOREIGN KEY C. SEQUENTIAL D. PRIMARY KEY
- Aa
- Bb
- Cc
- Dd
28Which key uniquely identifies a row in a table? A. foreiqn B. primary C. local D. superkey
- Aa
- Bb
- Cc
- Dd
29You accept an IT internship at a local charity. The charity wants you to help them with compliance and auditing requirements. You need to ensure that a column or combination of columns uniquely identifies each row of a table. Which constraint should you define? A. Primary key B. Secondary key C. Foreign key D. Default key
- Aa
- Bb
- Cc
- Dd
Informationen
- Beschreibung
- Quiz am Ohne Titel, erstellt von Vladislav Danila am 19/08/2025.
- Autor
- Vladislav Danila
- Sprache
- English
- Aufrufe
- 1
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz
Mehr zu Relational Databases and the Relational Model