Search Header Logo

2902032025 - JAVA-DSA-DBMS-OOP

Authored by Lilesh Pathe

Computers

University

Used 1+ times

2902032025 - JAVA-DSA-DBMS-OOP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In an ER diagram, what do entities represent?

Relationships between tables
Physical storage location
Real-world objects or concepts
Database queries

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following best describes an attribute in an ER model?

A link between entities
A primary key
A characterstic or property of an entity
A type of relationship

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A relationship in an ER model that involves more than two entity types is known as:

A binary relationship
A ternary relationship
A primary relationship
An associative relationship

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To add a column named "Email" of type VARCHAR to an existing table named "Users", which SQL statement is correct?

ALTER TABLE Users ADD COLUMN Email VARCHAR
ALTER TABLE Users ADD Email VARCHAR
UPDATE TABLE Users ADD Email VARCHAR
INSERT INTO Users (Email) VALUES ('VARCHAR')

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct SQL statement to create a foreign key in the "Orders" table that references the "Customers" table's primary key?

CREATE FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)
ALTER TABLE Orders ADD CONSTRAINT fk_customer FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID)
ALTER TABLE Orders ADD FOREIGN KEY (CustomerID) REFERENCES Customers
CREATE TABLE Orders ADD FOREIGN KEY CustomerID REFERENCES Customers

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a graph of n nodes and n edges, how many cycles will be present?

Exactly 1
At most 1
At most 2
Depends on the graph

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following algorithms are used to find the shortest path from a source node to all other nodes in a weighted graph?

BFS
Dijkstra's Algorithm
Prims Algorith
Kruskal's Algorithm

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?