0

Data Base Management System

Description: Complete study material for DBMS, RDBMS, Data Base Management System, Relational Data Base Management System, Primary Key, Foreign Key, Data, Information to prepare for B.Sc-IT, M.Sc-IT, BCA, MCA, MCa Entrance
Number of Questions: 30
Created by:
Tags: DBMS Data Base RDBMS Relational Data Base Primary Key B.Sc-IT M.Sc-IT MCA BCA MCA Entrance Basic Computer C C++ ASP PHP HTML database management system notes advantages of database management system Data Base Management System Relational Data Base Management System Data Structures
Attempted 0/30 Correct 0 Score 0

Which data structure is needed to convert infix notations to postfix notations?

  1. Linear list

  2. Queue

  3. Tree

  4. Stack


Correct Option: D

A linear list in which elements can be added or removed at either end but not in the middle is known as

  1. queue

  2. deque

  3. stack

  4. tree


Correct Option: B

Recursive procedures are implemented by

  1. queues

  2. stacks

  3. strings

  4. none of these


Correct Option: B

The infix expression A+(B-C)*D is correctly represented in prefix notation as

  1. A+B-C*D

  2. +A*-BCD

  3. A-B+C*D

  4. -A+*BCD


Correct Option: B

A list of data items, usually words or bytes, with the accessing restriction that elements can be added or removed at one end of the list only, is known as

  1. stack

  2. memory

  3. linked list

  4. heap


Correct Option: A

In what order are the elements of a pushdown stack accessed?

  1. First In First Out (FIFO)

  2. Last In Last Out (LILO)

  3. Last In First Out (LIFO)

  4. None of the above


Correct Option: C

Which of the following is a tabular listing of contents of certain registers and memory locations at different times during the execution of a program?

  1. Loop program

  2. Program trace

  3. Sub-routine program

  4. Byte sorting program


Correct Option: B

The initial configuration of queue is a,b,c,d ('a' is at the front). To get the configuration d, c, b, a, one needs a minimum of

  1. 2 decletions and 3 additions

  2. 3 deletions and 2 additions

  3. 3 deletions and 3 additions

  4. 3 deletions and 4 additions


Correct Option: C

If memory for the run-time stack is only 150 cells (words), how big can N be in factorial (N) before encountering stack overflow?

  1. 24

  2. 66

  3. 15

  4. None of these


Correct Option: B

The following sequence of operations is performed on a stack push (1), push (2), pop, push(1), push(2), pop, pop, pop, push(2), pop. The sequence of the popped out values is

  1. 2, 2, 1, 1, 2

  2. 2, 2, 1, 2, 2

  3. 2, 1, 2, 2, 1

  4. 2, 1, 2, 2, 2


Correct Option: A

A stack is a concept

  1. LIFO

  2. FIFO

  3. LILO

  4. None of these


Correct Option: A

Queues serve a major role in

  1. simulation of recursion

  2. simulation of arbitrarily linked list

  3. simulation of limited resource allocations

  4. expression evaluation


Correct Option: C

A priority queue Q is used to implement a stack S that stores characters. PUSH (C) is implemented as INSERT (Q, C, K), where K is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN (Q). For a sequence of operations, the keys chosen are in

  1. non-increasing order

  2. non-decreasing order

  3. strictly increasing order

  4. strictly decreasing order


Correct Option: D

A queue is a concept

  1. LIFO

  2. FIFO

  3. LILO

  4. None of these


Correct Option: B

The Postfix equivalent of the prefix * + a b - c d, is

  1. ab+cd-*

  2. abcd+-*

  3. ab+cd*

  4. ab+-cd*


Correct Option: C

The postfix expression for the infix expression A+B*(C+D)/F+D*E, is

  1. AB+CD+F/D+E

  2. ABCD+F/+DE+

  3. A*B+CD/F*DE++

  4. A+*BCD/F*DE++


Correct Option: C

Stacks can't be used to

  1. evaluate an arithmetic expression in postfix form

  2. implement recursion

  3. convert a given arithmetic expression in infix form to its equivalent postfix form

  4. allocate resources (like CPU) by the operating system


Correct Option: C

The infix priorities of +, *, ^, / could be

  1. 5, 1, 2, 7

  2. 7, 5, 2, 1

  3. 1, 2, 5, 7

  4. 5, 2, 2, 4


Correct Option: D

Stack is useful for implementing

  1. radix sort

  2. breadth first search

  3. recursion

  4. none of these


Correct Option: A

Selection sort's average time complexity is

  1. O (n2)

  2. O (nlogn)

  3. O (logn)

  4. O (n)


Correct Option: A

The process of accessing data stored in a tape is similar to manipulating data on a

  1. stack

  2. queue

  3. list

  4. heap


Correct Option: B

Bubble sort's average time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A

Insertion sort's average time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A

Merge sort's average time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: B

Quick sort's average time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: B

Selection sort's worst-case time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A

Bubble sort's worst-case time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A

Merge sort's worst-case time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: B

Insertion sort's worst-case time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A

Quick sort's worst-case time complexity is

  1. O(n2)

  2. O(nlogn)

  3. O(logn)

  4. O(n)


Correct Option: A
- Hide questions