Quiz
Database Design 4
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (25)
1According to the next scenario try to identify 1 possible attribute: «A student has a large collection of music. Her music is stored in DVDs, CDs, Tapes, and Memory Sticks etc. All the various media in which music is stored is organized in a (physical) library. The library itself is organized into numbered columns and named shelves. The database should capture details of albums, songs, artists, production studios, prices and awards received, etc.»
- AArtist
- BPrice
- CSongs
- DAlbums
2According to the next scenario try to identify 1 possible attribute: «A student has a large collection of music. Her music is stored in DVDs, CDs, Tapes, and Memory Sticks etc. All the various media in which music is stored is organized in a (physical) library. The library itself is organized into numbered columns and named shelves. The database should capture details of albums, songs, artists, production studios, prices and awards received, etc.»
- AStudent
- BAlbums
- CMemory
- DDVD
34. According to the next scenario, which one of the given options is a possible M-to-M relationship between two entities: “A vehicles repair garage can handle vehicles of multiple types (e.g. cars, vans, trucks, etc). For billing purposes, the garage must record all details about a vehicle (e.g. registration, colour, number of wheel-axis, MOT, etc). Customers bring their vehicles to the garage and leave it there for repair. Once the repairs are done in different departments (e.g. paint, chassis integrity, electrics and electronics, engine, etc). Individual mechanics operate within one speciality only. The garage manager keeps track of which mechanic works on which vehicle, because an employee salary depends on his/her basic salary plus an additional for each vehicle he/she repairs. Thus, the manager is interested in building a database that would allow him to calculate employees’ salaries based on the difficulty and number of the repairs done to vehicles. Recurring customers have preferred mechanics and this should also be reflected in the database”.
- AVehicles M-to-M Customers
- BMechanics M-to-M Department
- CCustomers M-to-M Mechanics
- DGarage M-to-M Vehicles
4Which of the following statements concerning normal forms is true?
- AEach normal form contains a state of independent properties, unrelated to other normal forms
- BThe lower the normal form number, the better the schema design is
- CA relation that is in second normal form is also in first normal form
- DSchemes that are in second normal form are considered the best
5«The use of null values in tuples» is a property of good relational schemas.
- AVerdadeiro
- BFalso
6The elimination of data redundancy to avoid update anomalies» is a property of good relational schemas.
- AVerdadeiro
- BFalso
7The grouping of as many attributes as possible into one main table» is a property of good relational schemas
- AVerdadeiro
- BFalso
8Which of the following is not a phase of database development?
- APhysical Design
- BLogical Design
- CConceptual Design
- DDBMS Selection
9Which of the following is not a DDL statement?
- AINSERT
- BCREATE
- CDROP
- DALTER
10Which of the following is not a SQL database manipulation statement?
- ASELECT
- BDELETE
- CUPDATE
- DCREATE TABLE
11Which of the following is not a SQL database manipulation statement?
- ASELECT
- BUPDATE
- CDELETE
- DALTER TABLE
12Which one of the following sorts rows in SQL?
- AORDER BY
- BGROUP BY
- CALIGN BY
- DSORT BY
13Find all cities with temperature, condition and humidity whose humidity is in the range of 63 to 79
- ASELECT * FROM weather WHERE humidity NOT BETWEEN 63 AND 79;
- BSELECT * FROM weather WHERE humidity BETWEEN 63 AND 79;
- CSELECT * FROM weather WHERE humidity = 63 to 79;
- DSELECT * FROM weather WHERE humidity = 63 AND 79;
14With SQL, how can you return the number of records in the ‘Persons’ table?
- ASELECT COLUMNS (*) FROM Persons;
- BSELECT COUNT( ) FROM Persons;
- CSELECT COLUMNS ( ) FROM Persons;
- DSELECT COUNT(*) FROM Persons;
15With SQL, how do you select all the records from a table named «Persons», where the value of the column «FirstName» is «Peter»?
- ASELECT * FROM Persons WHERE FirstName = ‘Peter’;
- BSELECT [all] FROM Persons WHERE FirstName = ‘Peter’;
- CSELECT [all] FROM Persons WHERE FirstName LIKE ‘Peter’;
- DSELECT * FROM Persons WHERE FirstName <> ‘Peter’;
16With SQL, how do you select all the records from a table named «Persons», where the «FirstName» is «Peter» and the «LastName» is «Jackson»?
- ASELECT * FROM Persons WHERE LastName = ‘Jackson’;
- BSELECT FirstName = ‘Peter’, LastName = ‘Jackson’ FROM Persons;
- CSELECT * FROM Persons WHERE FirstName <> ‘Peter’ AND LastName <> ‘Jackson’;
- DSELECT * FROM Persons WHERE FirstName = ‘Peter’ AND LastName = ‘Jackson’;
17With SQL, how can you return all the records from a table named «Persons» sorted descending by «FirstName»?
- ASELECT * FROM Persons ORDER BY FirstName DESC;
- BSELECT * FROM Persons SORT BY ‘FirstName’ DESC;
- CSELECT * FROM Persons ORDER FirstName DESC;
- DSELECT * FROM Persons SORT ‘FirstName’ DESC;
18With SQL, how do you select all the columns from a table named «Persons»?
- ASELECT * .Persons
- BSELECT [all] FROM Persons
- CSELECT * FROM Persons
- DSELECT Persons
19How to select all data from student table starting the name from letter ‘r’?
- ASELECT * FROM student WHERE name LIKE ‘%r%’;
- BSELECT * FROM student WHERE name LIKE ‘%r’;
- CSELECT * FROM student WHERE name LIKE ‘r%’;
- DSELECT * FROM student WHERE name LIKE ‘_r%’;
20Which of the SQL statements is correct?
- ASELECT Username AND Password FROM Users
- BSELECT Username, Password WHERE Username = ‘user1’
- CSELECT Username, Password FROM Users
- DNone of the given
21Which of the following SQL statements deletes all rows in table called SalesData?
- ADELETE SalesData
- BDELETE * FROM SalesData
- CDELETE FROM SalesData
- DDELETE ALL SalesData
22Which of the following SQL statements will select all records with all their columns from a table called Sales?
- ASELECT * FROM SALES WHERE OrderID < 1;
- BSELECT * FROM Sales
- CDELETE FROM Sales
- DDELETE * FROM Sales
23What will be the result of the following SQL statement SELECT * FROM Table1 HAVING Column1 > 10?
- AThe result will be all rows from Table1 which have Column1 values greater than 10.
- BThe result will be empty data set.
- CThe SQL statement will generate an error.
- DNone of the given
24Which of the following is NOT a relational algebra operators used in basic queries?
- ASelect
- BLocate
- CProject
- DJoin
25What is the keyword you would use before adding conditions to your query?
- AEQUALS
- BWHAT
- CCONDITIONS
- DWHERE
Informações
- Descrição
- 75 questions from Kozina's file + 42 questions from known Midterm or Endterm tests screenshots
- Autor
- Bekinston Talgio
- Idioma
- English
- Visualizações
- 0
- Histórico
- Criado em 4 jul 2019 · atualizado em 4 jul 2019
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz