Which of the following statements is INCORRECT?

S1: Data elements in the database can be modified by changing the data dictionary.

S2: The data dictionary contains the name and description of each data element.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
An edge between an entity set and a binary relationship set can have an associated minimum and maximum cardinality, shown in the form (1, n) where ‘1’ is the minimum and ‘n’ is the maximum cardinality. The minimum value ‘1’ indicates:
total participation
partial participation
double participation
no participation
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In terms of relational model, which of the following is CORRECT?
Cardinality is termed as a number of tuples
Cardinality is termed as a number of tables
Cardinality is termed as a number of attributes
Cardinality is termed as a number of constraints
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
1-c, 2-a, 3-b
1-a, 2-b, 3-c
1-b, 2-a, 3-c
1-c, 2-b, 3-a
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Identify the CORRECT statements about the normalization process.

I. Reduces number of tables

II. Reduces database size

III. Reduces data constraints

IV. Reduces chances of data anomalies

Only II
I, II and IV
II and III
II and IV
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Let R= (A, B, C, D, E, F) be a relation scheme with the following dependencies: C->F, E->A, EC->D, A->B. Which of the following is not a key for R?
CD
CE
BCE
CEF
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the relation R(ABCD) with its candidate key AB. The maximum number of super keys possible is ________
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
A company has 3 departments with the following number of employees:

You want to select a stratified random sample of 10 employees, with the number of employees sampled from each department proportional to the size of the department. How many employees should be sampled from Department 3?

2
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Given a continuous feature representing ages with the following values:

{22, 25, 30, 35, 40, 45, 50, 55, 60, 65}

Assuming the ages have been clustered into the following groups:

Which cluster does the age 48 belong to?

Cluster 1
Cluster 2
Cluster 3
Cluster 4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
You have a continuous feature for temperatures with the following values and their corresponding classes:

Assume the decision tree splits the temperature at 22 and 32. What class does the temperature of 28 fall into?

Low
Medium
High
Undefined
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In Huffman coding, if a character 'A' appears 45 times, 'B' appears 13 times, 'C' appears 12 times, and 'D' appears 5 times, what is the correct order of encoding lengths (shortest to longest) for these characters?
A, B, C, D
D, C, B, A
C, D, B, A
B, C, D, A
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33

In LZW compression, consider the string ABABABA. Assuming the dictionary starts with single characters and new entries are added as new sequences are found, which of the following represents the correct sequence of dictionary indices after encoding the string?

A, B, C, D, 1, 2, 3

A, B, 1, 2, 3

A, B, 1, 2, D

A, B, C, 1, 2

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which one of the following is not CORRECT?

Relation is in 1NF but not in 2NF
Relation is in 3NF but not in BCNF
Relation is in 2NF but not in 3NF
Relation is in 3NF but not in 2NF
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider the following ER diagram:

Minimization of ER Diagrams - GeeksforGeeks

The minimum number of tables needed to convert the given ER diagram into the relational model?

1
2
3
4
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Identify the valid datatype(s), which can be used in SQL to define the type of data?
varchar
real
float
All of the above
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In SQL, views
contains data not stored in the database tables
are computed using a SQL query
takes up more disk space whenever more data is added to the database
are a way to improve the read time of a table in a database
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
Which of the following statements is/are CORRECT?

S1: In SQL, the UNIQUE constraint ensures that all values in a column are different.

S2: In SQL, CHECK constraint ensures whether the value in columns fulfils the specified condition or not.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statements is/are INCORRECT about DELETE and TRUNCATE commands in SQL?

S1: DELETE command is used to delete a specific row from the table whereas the TRUNCATE command is used to remove all rows from the table.

S2: We can use the DELETE command with WHERE clause but cannot use the TRUNCATE command with it.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statements is/are CORRECT in SQL?

S1: In SQL, a table can have many foreign keys.

S1: In SQL, a table can have many primary keys.

Only S1
Only S2
Both S1 and S2
Neither S1 nor S2
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following three SQL queries (Assume the data in the people table):

(a)Select Name from people where Age > 31;

(b)Select Name from people where Height > 190;

(c)Select Name from people where (Age > 31) or (Height > 190);

If the SQL queries (a) and (b) above, return 20 rows and 17 rows in the result set respectively, then what is one possible number of rows returned by the SQL query (c) ?

3
17
20
31
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Column X of a relation has the following list of values in the six rows of the table: 3, NULL, 2, 3, NULL, 5. The correct value of AVG(DISTINCT X) is _______ (You may compute your answer to 2 decimal places)
3.33
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.00
CREATE TABLE employee

(

id int NOT NOT NULL,

lastname varchar(255) NOT NULL,

firstname varchar(255),

age int,

PRIMARY KEY(ID)

);

CREATE TABLE employee

(

id int NOT NULL,

lastname varchar(255) NOT NULL,

firstname varchar(255),

age int,

PRIMARY KEY(ID, lastname)

);

CREATE TABLE employee

(

id int,

lastname varchar(255) NOT NULL,

firstname varchar(255),

age int,

PRIMARY KEY(ID, lastname)

);

CREATE TABLE employee

(

id int NOT NULL,

lastname varchar(255) NOT NULL,

firstname varchar(255),

age int,

PRIMARY KEY(lastname)

);

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the relation schema class(class_name, age). Identify the query to find the names and average age of all classes, whose average age is greater than 10.
SELECT class_name, age FROM class GROUP BY class_name HAVING AVG(age)>10;
SELECT class_name, age FROM class HAVING AVG(age)>10 GROUP BY class_name;
SELECT class_name, AVG(age) FROM class GROUP BY class_name HAVING AVG(age)>10;
SELECT class_name, AVG(age) FROM class HAVING AVG(age)>10 GROUP BY class_name;
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following Employee table:

Which of the following SQL returns “the total salary of all employees at each branch of the bank”.

SELECT Branch, SUM(Salary)

FROM Employee

GROUP BY City;

SELECT Branch, SUM(Salary)

FROM Employee

GROUP BY Branch;

SELECT SUM(Salary)

FROM Employee

GROUP BY Branch;

SELECT Branch, SUM(Salary)

FROM Employee;

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following is not a relational algebra operation?
Select
Rename
Insert
Union
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
The join operation can be expressed as:

R ⟗ S
STUDENT ⋈Student.Std = Subject.Class SUBJECT
R ⟖ S
All of the above
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider the following relations R and S. Compute R⋈S and identify which of the following records will be there in the result?

2, 3, 3, 5
3, 3, 1, 6
6, 4, 4, 1
3, 5, 3, 1
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Let Employee(Eid, Ename, Se, Dno) and Department(Dno, Dname) are two relational schemas with primary keys as underlined. The relation employee contains 800 tuples and the relation department contains 500 tuples. What is the maximum number of tuples in (Employee ⨝ Department)?

800000
500
800
0
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following is a lossless data compression algorithm?
JPEG
MPEG
LZW
MP3
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
What is the run-length encoding of the following string: AAAABBBCCDAA?
4A3B2C1D2A
4A3B2C2D2A
4A3B2C2D2A
4A3B2C1D2A
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
For a retail company analyzing sales data across various regions and product lines, which schema would you recommend if they need to frequently update the product hierarchy and maintain data consistency?
Star schema, because it is simpler and easier to query
Snowflake schema, because it handles updates to hierarchical data more effectively
Fact constellation schema, because it integrates multiple business processes
Flat file schema, because it simplifies data storage
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which of the following statements about schema complexity is true?
Star schema is more complex to design and maintain than a snowflake schema
Snowflake schema requires more complex queries but simplifies maintenance
Fact constellation schema is the simplest of all multidimensional schemas
Star schema and snowflake schema have similar levels of complexity
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Which schema is most suitable for a large-scale data warehouse with multiple related business processes?
Star schema
Snowflake schema
Fact constellation schema

Flat file schema
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66