wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ISAC Weekly Quiz 8 (C & DBMS)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What will be the output of the following C code?

a)

hi

b)

hello

c)

no

d)

error

2.

What will be the output of the following C code?

a)

inside if

b)

inside else if

c)

inside else

d)

compile time error

3.

What will be the output of the following C code?

a)

Compile time error

b)

Hello is printed thrice

c)

Nothing

d)

Hello is printed infinitely

4.

How many times i value is checked in the following C code?

a)

2

b)

3

c)

4

d)

1

5.
a)

H

b)

H is printed infinite times

c)

Compile time error

d)

Nothing

6.

The entity relationship set is represented in E-R diagram as

a)

Double diamonds

b)

Undivided rectangles

c)

Dashed lines

d)

Diamond

7.

If you were collecting and storing information about your music collection, an album would be considered a(n) _____

a)

Relation

b)

Entity

c)

Instance

d)

Attribute

8.

Key to represent relationship between tables is called

a)

Primary key

b)

Secondary Key

c)

Foreign Key

d)

Super Key

9.

SELECT * FROM employee WHERE salary>10000 AND dept_id=101;


Which of the following fields are displayed as output?

a)

Salary, dept_id

b)

Employee

c)

Salary

d)

All the field of employee relation

10.

SELECT instructor.*

FROM instructor, teaches

WHERE instructor.ID= teaches.ID;


This query does which of the following operation?

a)

All attributes of instructor and teaches are selected

b)

All attributes of instructor are selected on the given condition

c)

All attributes of teaches are selected on given condition

d)

Only the some attributes from instructed and teaches are selected