WSI Flashcards

1
Q

Which of the following are database models?

Bohr’s model

Relational model

Hierarchical model

Catalog model

A

Relational model

Hierarchical model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following attributes can be placed on the Student entity in the relational model:

PESEL

Numbers of all groups

Date of birth

Student’s Subjects

A

PESEL

Date of birth

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following are data models:

Network model

Bohr’s model

Object model

The card model

A

Network model

Object model

The card model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following statements is true?

NULL = NULL has the logical value NULL

NULL <> NULL has the logical value TRUE

NULL <> NULL has the logical value NULL

NULL = NULL has the logical value FALSE

A

NULL = NULL has the logical value NULL

NULL <> NULL has the logical value NULL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The SELECT statement is used to:

fetching records from the database

inserting records into the database

deleting records from the database

updating records in the database

A

fetching records from the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • (0)

Edgar Codd

Bill Gates

Niels Bohr

Alan Turing

A

Edgar Codd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Select the correct statements regarding indexes in database servers:

The programmer must specify in the SQL query that the index is to be used

When an index is installed on the table, the query will always execute faster

The index is necessary to be able to update the data

When an index is placed on the table, the query can be executed faster

A

When an index is placed on the table, the query can be executed faster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following statements are true?

The SQL INSERT statement is used to delete data from the database.

The INSERT SQL statement is used to modify data in the database.

The INSERT SQL statement is used to insert data into the database.

The SQL INSERT statement is used to read data from the database.

A

The INSERT SQL statement is used to insert data into the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following statements are true?

The SQL SELECT statement is used to read data from the database.

The SQL SELECT statement is used to insert data into the database.

The SQL SELECT statement is used to delete data from the database.

The SQL SELECT statement is used to update data in the database.

A

The SQL SELECT statement is used to read data from the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Represented in a relational database as a table is

A subset of the Cartesian product

The relationship between database tables

An ordered list of entities

A

A subset of the Cartesian product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mark the correct statements

The database server uses a buffer in RAM

each INSERT, DELETE, UPDATE statement is saved immediately after execution in the file containing the table data

each SELECT statement must always retrieve data directly from the hard drive (from which sources in the database the data is to be read)

A

The database server uses a buffer in RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following attributes can be placed on the MusicAlbum entity in the relational model? Remember that every entity in the relational model must be in first normal form:

AlbumCode

Authors of Works

OpinionsListening

Titles of Songs

A

AlbumCode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The logical data structure in the relational data model is:

Table structure

List structure

The relational model does not impose any data structure

File structure

A

Table structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The relationship is:

represented in a relational database as a table

a subset of the Cartesian product

relationship between database tables

an ordered list of entities

A

relationship between database tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The stereotype «extend» means that:

An actor can use another actor’s use cases

An actor can use a specific use case

One use case is a mandatory part of another

One use case is an optional part of another

A

One use case is an optional part of another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Inheritance is:

a relationship between classes that connects a more general class with a more specialized one

hiding the structure and implementation of the object

generalization of the set of connections between objects

an entity or idea mapped to a programming construct

A

a relationship between classes that connects a more general class with a more specialized one

17
Q

Select the correct answer

TRUE AND NULL = NULL

False AND NULL = NULL

TRUE OR NULL = TRUE

TRUE OR NULL = NULL

A

TRUE AND NULL = NULL

TRUE OR NULL = TRUE

18
Q

Which of the following statements are true:

The DELET statement of the SQL language is used to modify data in the database.

The DELET statement of SQL language is used to delete data from the database.

The DELET statement of the SQL language is used to insert data into the database.

The SQL DELET statement is used to read data from the database.

A

The DELET statement of SQL language is used to delete data from the database.

19
Q

Requirements: a student belongs to one class, one class has many students. How to define tables in the relational model? (this is questions with drawings)

Student Table: StudentID, Name, Surname
Class table: classid, classlevel

Table [something]: classid, studentid

Student Table: StudentID, Name, Surname
Class table: classid, classlevel, studentid

(same as above only tables in reverse order)
Class table: classid, classlevel, studentid

Student Table: StudentID, Name, Surname

Student Table: StudentID, Name, Surname, ClassID
Class table: classid, classlevel

A

Student Table: StudentID, Name, Surname, ClassID
Class table: classid, classlevel

20
Q

Mark the correct answers:

NOT NULL= TRUE

TRUE OR NULL=NULL

FALSE AND NULL=NULL

FALSE AND NULL= FALSE

A

FALSE AND NULL= FALSE

21
Q

Which of the following statements are true:

The WHERE clause of the SELECT statement in SQL specifies the conditions that the rows being read must meet.

The ORDER BY clause of the SELECT statement in SQL specifies the conditions that must be met by the rows being read.

The WHERE clause of the SELECT statement in SQL determines how the rows read from the database are sorted.

The ORDER BY clause of the SELECT statement in SQL specifies the conditions that must be met by the rows being read.

A

The WHERE clause of the SELECT statement in SQL specifies the conditions that the rows being read must meet.

22
Q

Which of the following problems could be the result of technical debt?

None of the above, technical debt is a way to rip off the client

Increase in system implementation costs

Difficulties in implementing more user stories in future sprints

No possibility of further expansion of the system

A

Increase in system implementation costs

Difficulties in implementing more user stories in future sprints

No possibility of further expansion of the system

23
Q

Mark the correct answers:

TRUE and NULL = NULL

NOT NULL = NULL

NOT NULL = TRUE

TRUE OR NULL = NULL

A

TRUE and NULL = NULL

NOT NULL = NULL

24
Q

Which of the following statements are true about the relational database model?

a foreign key is a unique identifier of a row in a table

in a relational database table, rows can be repeated

There can only be one primary key in a table

There can be several foreign keys in a table

A

There can only be one primary key in a table

There can be several foreign keys in a table

25
Q

From the list below, select the properties that characterize a Use Case Actor:

such a concept does not exist

represents a category of users with specific needs and permissions

represents a specific person

may be a special case of another Actor

A

may be a special case of another Actor

26
Q

Which of the following attributes can be placed on the Student entity in the relational model? Remember that every entity in the relational model must be in first normal form:

Student subjects

Start date of study

Date of birth

Student Assessment

A

Start date of study

Date of birth

27
Q

Select the correct answer:

FALSE AND NULL = FALSE

TRUE OR NULL = NULL

NOT NULL= TRUE

NOT NULL= NULL

A

FALSE AND NULL = FALSE

NOT NULL= NULL

28
Q

Which of the following statements are true?

The ORDER BY clause of the SELECT statement in SQL specifies how to sort the rows read from the database.

The FROM clause of the SELECT statement in SQL specifies the conditions that must be met by the rows being read.

The WHERE clause of the SELECT statement in SQL specifies the conditions that must be met by the rows being read.

The ORDER BY clause of the SQL SELECT statement specifies the tables from which data will be read.

A

The ORDER BY clause of the SELECT statement in SQL specifies how to sort the rows read from the database.

The WHERE clause of the SELECT statement in SQL specifies the conditions that must be met by the rows being read.

29
Q

Inheritance is:

a description of a group of objects that share the same set of values

an entity or idea mapped to a programming construct

a relationship between actors that connects a more general actor with a more specialized one

generalization of the set of connections between objects

30
Q

Which of the following statements are true?

NULL <> NULL has the logical value NULL

NULL <> NULL has the logical value FALSE

NULL <> NULL has the logical value TRUE

NULL = NULL has the logical value FALSE

A

NULL <> NULL has the logical value NULL

31
Q

Which of the following statements are true in the relational data model (I don’t know the correct answer)

the primary key is a unique identifier for a row in a table

in a relational database table, rows can be repeated

in a relational database, the only logical structure for storing data is tables

a foreign key is a pointer to a row in another table

A

The primary key is a unique identifier for a row in a table.
In a relational database, the only logical structure for storing data is tables.
A foreign key is a pointer to a row in another table.

32
Q

Which of the following are data models:

The card model

Network model

Hierarchical model

Object model

A

The card model

Network model

Hierarchical model

Object model

33
Q

Which of the following statements are true about the relational data model:

A perspective is a logical structure for storing data.

The perspective is for presentation, not for storing data.

Data from a perspective can be read in the same way as data from tables.

The perspective shows the values ​​read from the database at the time of its launch.

A

The perspective is for presentation, not for storing data.

Data from a perspective can be read in the same way as data from tables.

The perspective shows the values ​​read from the database at the time of its launch.

34
Q

From the list below, select the properties that characterize the Use Case Actor.

may be a special case of another actor

such a concept does not exist

represents a specific person

can only be associated with one use case

A

may be a special case of another actor

35
Q

Which of the following statements are true?

The UPDATE statement is used to modify data in the database.

The UPDATE statement is used to insert data into the database.

The UPDATE statement is used to read data from the database.

The UPDATE statement is used to delete data in the database.

A

The UPDATE statement is used to modify data in the database.