wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

cpe.120.fe

Total questions: 40

Worksheet time: 30mins

Name
Class
Date
1.

Why the following statement is erroneous?

SELECT dept_name, ID, avg(salary)

FROM instructor

GROUP BY dept_name;

a)

Dept_id should not be used in group by clause

b)

Group by clause is not valid in this query

c)

Avg(salary) should not be selected

d)

None of the choices

2.

Which of the following is not the utility of DBMS?

i) Backup ii) Loading iii) Process Organization iv) File organization

a)

i, ii, and iv only

b)

i, ii and iii only

c)

i, iii and iv only

d)

i, iii and iv only

3.

Which of the following is not correct according to the technology deployed by DBMS?

i) Pointers are used to maintain transactional integrity and consistency

ii) Cursors are used to maintain transactional integrity and consistency

iii) Locks are used to maintain transactional integrity and consistency

iv) Triggers are used to maintain transactional integrity and consistency

a)

i, ii, and iv only

b)

i, ii, and iii only

c)

all i, ii, iii, and iv

d)

ii, iii, and iv only

4.

Evaluate the statements issued by the DBA in the given sequence if OE and SCOTT are the users and the ORDERS table is owned by OE.

 

CREATE ROLE r1;

GRANT SELECT, INSERT ON oe.orders TO r1;

GRANT r1 TO scott;

GRANT SELECT ON oe.orders TO scott;

REVOKE SELECT ON oe.orders FROM scott;

 

What would be the outcome after executing the statements?

a)

The REVOKE statement would give an error because the SELECT privilege has been granted to the role R1

b)

The REVOKE statement would remove the SELECT privilege from SCOTT as well as from the role R1

c)

SCOTT would be able to query the OE.ORDERS table

d)

SCOTT would not be able to query the OE.ORDERS table

5.

What is the correct sequence to create a database connection?

i. Import JDBC packages.

ii. Open a connection to the database.

iii. Load and register the JDBC driver.

iv. Execute the statement object and return a query resultset.

v. Create a statement object to perform a query.

vi. Close the resultset and statement objects.

vii. Process the resultset.

viii. Close the connection.

a)

i, ii, iii, v, iv, vii, viii, vi

b)

i, iii, ii, v, iv, vii, vi, viii

c)

ii, i, iii, iv, viii, vii, v, vi

d)

i, iii, ii, iv, v, vi, vii, viii

6.

What does setAutoCommit(false) do?

a)

It will not commit transactions automatically after each query

b)

It explicitly commits the transaction.

c)

It never commits the transactions.

d)

It does not commit transaction automatically after each query.

7.

What should be the correct order to close the database resource?

a)

Connection, Statements, and then ResultSet

b)

ResultSet, Connection, and then Statements

c)

Statements, ResultSet, and then Connection

d)

ResultSet, Statements, and then Connection

8.

Which of the following is not a type of ResultSet object?

a)

TYPE_FORWARD_ONLY

b)

CONCUR_WRITE_ONLY

c)

TYPE_SCROLL_INSENSITIVE

d)

TYPE_SCROLL_SENSITIVE

9.

Which of the following is the correct to register a JdbcOdbcDriver?

a)

jdbc.odbc.JdbcOdbcDriver obj = new sun.jdbc.odbc.JdbcOdbcDriver();

b)

odbc.JdbcOdbcDriver obj = new sun.odbc.JdbcOdbcDriver();

c)

jdbc.JdbcOdbcDriver obj = new sun.jdbc.JdbcOdbcDriver();

d)

jdbc.odbc.JdbcOdbc obj = new sun.jdbc.odbc.JdbcOdbc();

10.

Which statement is correct if we want to connect the Oracle database using the thin driver provided by Oracle Corp.?

a)

getConnection("jdbc::thin@localhost:1521:oracle", "scott", "tiger");

b)

getConnection("jdbc:thin@localhost:1522:oracle", "scott", "tiger");

c)

getConnection("jdbc::thin@localhost:1522:oracle", "scott", "tiger");

d)

getConnection("jdbc::oracle@localhost:1521:thin", "scott", "tiger");

11.

Are ResultSets updateable?

a)

Yes, but only if we call the method openCursor() on the ResultSet and if the driver and database support this option.

b)

Yes, but only if we indicate a concurrency strategy when executing the statement, and if the driver and database support this option.

c)

Yes, but only if the ResultSet is an object of class UpdateableResultSet and if the driver and database support this option.

d)

No, ResultSets are never updateable. We must explicitly execute a DML statement to change the data in the underlying database.

12.

Which statement(s) is/ are true about transactions?

i. A transaction is a set of one or more SQL statements that make up a logical unit of work.

ii. A transaction ends with either a commit or a rollback, depending on whether there are any problems with data consistency or data concurrency.

iii. A lock is a mechanism that allows two transactions from manipulating the same data at the same time.

iv. To avoid conflicts during a transaction, a DBMS uses locks, mechanisms for blocking access by others to the data that is being accessed by the transaction.

a)

Only i and ii

b)

Only i and iii

c)

Only i, ii, and iv

d)

All the choices

13.

What is the purpose of Alt + W key in Tally?

a)

Change the financial period

b)

Invoke tally reference manual

c)

Open default web browser

d)

Exist tally without confirmation

14.

Which of the following browsers were/are available for Macintosh?

a)

Opera

b)

Safari

c)

Netscape

d)

All of the choices

15.

Which of the following are alternative names for mobile browsers?

a)

Microbrowser

b)

Wireless internet browser

c)

Minibrowser

d)

All of the choices

16.

Which of the following browser has high speed browsing capacity

a)

Chrome

b)

Opera

c)

UC browser

d)

Lynx

17.

Which of the following is a traditional method for emulating the processor?

a)

SDS

b)

ICE

c)

CPU simulator

d)

Low-level language simulator

18.

Which of the following allow access to all the hardware within the system?

a)

Debugger

b)

JTAG

c)

Onboard debugger

d)

Simulator

19.

How the additional registers are accessed in the OnCE?

a)

Parallel port

b)

Serial port

c)

JTAG

d)

Address register

20.

Which of the following emulators can provide its own circuit emulation facility?

a)

Simulator

b)

Debugger

c)

SDS

d)

OnCE

21.

Which of the following takes the processor, when the processors enters the BDM mode?

a)

Address code

b)

High-level microcode

c)

Low-level microcode

d)

Data code

22.

Which of the following has the additional circuitry which supports the background debug mode?

a)

Memory

b)

Input

c)

Peripheral

d)

Processor

23.

The local operating system on the server machine passes the incoming packets to the

a)

Server client stub

b)

Client stub

c)

Server stub

d)

Client operating system

24.

A database server is responsible for which of the following?

a)

Database storage

b)

Data processing logic

c)

Data presentation logic

d)

All of the choices

25.

A server cannot serve on which of the following levels?

a)

Client layer

b)

Business layer

c)

Database layer

d)

All of the choices

26.

Which of the following is true concerning the mainframe?

a)

It is the same thing as client/server.

b)

Requires someone to decide which code should be on the workstation or the server.

c)

Mission-critical systems have tended to remain there

d)

All of the choices

27.

Which of the following web applications can be deployed with Azure?

b)

PHP

c)

WCF

d)

All of the choices

28.

A company wants to use cloud services in the future. What needs to be done first?

a)

Ask the IT department to work out a plan to reduce capital expenses using cloud services.

b)

Analyze existing business processes and determine which of them can be realized using cloud services.

c)

Use cloud migration services to move their production workload into a managed cloud.

d)

Ask the IT department to order multiple virtual machines from different cloud service providers and test them for performance.

29.

Which of these should a company consider before implementing cloud computing technology?

a)

Employee satisfaction

b)

Potential cost reduction

c)

Information sensitivity

d)

All of the choices

30.

Big Five personality characteristics are for cloud computing

a)

Agreeableness, Conscientiousness, Value conscious, Physical Strength, Kindness

b)

Agreeableness, Conscientiousness, Extraversion, Emotional range, Openness

c)

Extraversion, Emotional range, Openness, Kindness, Social values

d)

Conscientiousness, Extraversion, Emotional range, Kindness

31.

What is comprised of millions of smart devices and sensors connected to the internet?

a)

IoT

b)

Cloud Computing

c)

Block Chain

d)

Artificial Intelligence

32.

What type of device could allow a refrigerator to place a replacement order for an item

contained within it?

a)

Sensor

b)

Actuator

c)

Battery

d)

Switch

33.

…………… is a computer which can do all the operations like a conventional computer.

a)

Sensor

b)

Actuator

c)

Amplifier

d)

Switch

34.

Which of these is NOT related to IoT scalability?

a)

Flexible within the Internet

b)

Large scale deployment

c)

Real-time connectivity of billions of devices

d)

Range of Sensor node

35.

Which of the following is true?

a)

IoT is a subset of M2M

b)

M2M is a subset of IoT

c)

IoT is a subset of CPS

d)

CPS is a subset of Web of Things (WoT)

36.

Which of these statements regarding sensors are TRUE?

a)

Sensors are input devices

b)

Sensors can be analog or digital

c)

Sensors respond to some external stimuli

d)

All the choices

37.

IoT refers to:

a)

Interconnections of devices in a network

b)

Exchange of data between devices in a network/span>

c)

An ecosystem of devices, accessible through internet

d)

All the choices

38.

……………… was First IoT enabled device appeared in the Market

a)

Refrigerator

b)

Toaster

c)

Television

d)

Radio

39.

Who invented the term the Internet of Things?

a)

Bill Gates

b)

Steve Jobs

c)

Kevin Ashton

d)

McDonald

40.

What allows digital devices to interconnect and transmit data?

a)

a sensor

b)

a global positioning sensor

c)

a smart phone

d)

a network