Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IT Test 11 May Slot2

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.
Which of the following is not a DBMS despite having database capabilities:
a)
Microsoft Excel or similar spreadsheets
b)
Oracle
c)
MySQL
d)
Microsoft Access or similar
2.

If every non-key attribute is functionally dependent on the primary key, then the relation will be in :

a)

1NF

b)

2NF

c)

3NF

d)

4NF

3.

The data model which describes how the data is actually stored is

a)

internal model

b)

external model

c)

logical model

d)

none of these

4.

CREATE TABLE employee (name VARCHAR, id INTEGER)

What type of statement is this?

a)

DML

b)

DDL

c)

View

d)

Integrity constraint

5.

How do we select all rows for the "Designer" table?

a)

SELECT * FROM Designer

b)

SELECT [All] FROM Designer

c)

SELECT Designer.*

d)

SELECT FROM Designer

6.

What is the meaning of DCL?

a)

Data Count Language

b)

Database Control Language

c)

Data Calculation Language

d)

Data Control Language

7.

Match SQL language with SQL commands

1)DDL i)Revok, Grant

2)DML ii)rename a table

3)TCL iii)insert, update

4)DCL iv)rollback , commit

a)

1-iii,2-i,3-ii,4-iv

b)

1-iii,2-ii,3-iv,4-i

c)

1-ii,2-iii,3-iv,4-i

d)

1-i,2-iii,3-ii,4-iv

8.

How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?

a)

MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen

b)

MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'

c)

UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'

d)

UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'

9.

With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?

a)

SELECT * FROM Persons SORT 'FirstName' DESC

b)

SELECT * FROM Persons ORDER BY FirstName DESC

c)

SELECT * FROM Persons SORT BY 'FirstName' DESC

d)

SELECT * FROM Persons ORDER FirstName DESC

10.

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

a)

SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'

b)

SELECT [all] FROM Persons WHERE FirstName='Peter'

c)

SELECT * FROM Persons WHERE FirstName='Peter'

d)

SELECT * FROM Persons WHERE FirstName<>'Peter'

11.

Which of the following statements about MongoDB collections is true?

a)
  • A) Collections are equivalent to tables in relational databases.

b)
  • B) Collections store documents with a fixed schema.

c)
  • C) Collections can be nested within other collections.

d)
  • D) None of the mentioned above.

12.

How does MongoDB handle schema flexibility compared to traditional relational databases?

a)

MongoDB enforces a rigid schema

b)

MongoDB has a dynamic schema

c)

MongoDB does not support schemas

d)

MongoDB requires explicit schema definitions for each collection

13.

Which normal form allows for a dependency on a candidate key, as well as on other non-key attributes?

a)

First Normal Form (1NF)

b)

Second Normal Form (2NF)

c)

Third Normal Form (3NF)

d)

Boyce-Codd Normal Form (BCNF)

14.

_________ operation returns the value of the topmost element of the stack.

a)

push

b)

pop

c)

peep

d)

update

15.

In ___________ data structure data items are not in sequence.

a)

non linear

b)

linear

c)

non-homogeneous

d)

all of above

16.

In a min-heap:

a)

parent nodes have values greater than or equal to their Childs

b)

parent nodes have values less than or equal to their Childs

c)

both statements are true

d)

both statements are wrong

17.

A Binary Tree can have

a)

Can have 2 children

b)

Can have 1 children

c)

Can have 0 children

d)

All of the above

18.

The disadvantage in using a circular linked list is __________

a)

it is possible to get into infinite loop

b)

last node points to fist node.

c)

time consuming

d)

requires more memory space.

19.

There is an extra element at the head of the list called a ________

a)

Antinel

b)

Sentinel

c)

List header

d)

List head

20.

A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called

a)

AVL tree

b)

Red-black tree

c)

Lemma tree

d)

None of the above

21.

In a stack, if a user tries to remove an element from empty stack it is called _________

a)

Underflow

b)

Empty collection

c)

Overflow

d)

Garbage Collection

22.

What is the value of the postfix expression 6 3 2 4 + – *

a)

1

b)

40

c)

74

d)

-18

23.

The following postfix expression with single digit operands is evaluated using a stack:

8 2 3 ^ / 2 3 * + 5 1 * -

a)

6,1

b)

5,7

c)

3,2

d)

1,5

24.

What data structure is used for breadth first traversal of a graph?

a)

queue

b)

stack

c)

list

d)

none of the above

25.

What is the path for an image located in same folder as the current page?

a)

<img src= “pic.jpg”>

b)

<img src= “../pic.jpg”>

c)

<img src= “images/pic.jpg”>

d)

<img src= “/images/pic.jpg”>

26.

What is JavaScript?

a)

JavaScript is a scripting language used to make the website interactive

b)

JavaScript is an assembly language used to make the website interactive

c)

JavaScript is a compiled language used to make the website interactive

d)

None of the mentioned

27.

Which of the following are the advantages of React.js?

a)

React.js can increase the application's performance with Virtual DOM

b)

React.js is easy to integrate with other frameworks such as Angular, BackboneJS since it is only a view library

c)

React.js can render both on client and server side

d)

All of the above

28.

The process by which objects of one class acquire the properties of objects of another class is known as

a)

Polymorphism

b)

Inheritance

c)

Data Hiding

d)

Association

29.

-Entries are organized as key/value pairs.

-Duplicate entries replace old entries.

-Entries are sorted using a Comparator or the Comparable interface.

Which interface of the java.util package offers the specified behavior?

a)

List

b)

Map

c)

Set

d)

SortedSet

e)

SortedMap

30.
a)

{null=null, a=null, b=JavaSE, c=PHP, d=Python}

b)

{a=null, b=JavaSE, c=PHP, d=Python}

c)

{b=JavaSE, c=PHP, d=Python}

d)

Compilation Fails

31.
a)

{1=C, 2=JavaEE, 4=Python, 3=PHP}

b)

{1=C, 2=JavaSE, 3=Python, 4=PHP}

c)

{1=C, 2=JavaEE, 3=Python, 4=PHP}

d)

{1=C, 2=JavaSE,2=JavaEE, 3=Python, 4=PHP}

e)

NullPointerException

32.

List listNames = new ArrayList();

listNames.add("Tom");

listNames.add("Mary");

listNames.add("Peter");


String name2 = (String) listNames.get(1);

System.out.println(name2);

What is the output of the above code

a)

Tom

b)

Mary

c)

Peter

d)

raises Exception

33.

Which of these statements is incorrect about tread ?

a)

Start() method is used to begin execution of the thread

b)

Run () method is used to begin execution of a thread before start() method in special cases

c)

A thread can be formed by implementing runnable interface only

d)

A thread can be formed by a class that extends thread class

34.

Which statement is true about java ?

a)

Java is a sequence-depended programming language

b)

Java is a code dependent programming language

c)

Java is a platform-dependent programming language

d)

Java is a platform-independent programming language

35.

Choose the correct syntax of include directive?

a)

<% include file="file.jsp" %>

b)

<%@ include page="file.jsp" %>

c)

<%! include page="file.jsp" %>

d)

<%@ include file="file.jsp" %>

36.

Select valid declaration in JSP

a)

<% int data=50; %>

b)

<%!-- int data=50; --%>

c)

<%@ int data=50; %>

d)

<%! int data=50; %>

37.

The code inside scriplet will be placed in _____ method of jsp life cycle?

a)

jsp_init()

b)

jsp_service()

c)

httpService()

d)

_jspService()

38.

times is ________________ type of argument.

a)

default arguments

b)

keyword arguments

c)

positional arguments

d)

arbitrary positional arguments

e)

arbitrary keyword arguments

39.

What is the output of the given code?

a)

10 20 10 20

b)

10 20 10

c)

10 20 20

d)

Error

40.

The output of the code above is

a)

Key Error

b)

4

c)

Math