The data structure required to check whether an expression contains a balanced parenthesis is?
a) Queue
b) Stack
c) Tree
d) Array
Computer Science MCQ with detailed explanations for students & freshers preparing for entrance exams, various tests, interviews, competitive exams like GATE exam, interview, competitive examination and entrance exam.
a) Stack
b) Queue
c) List
d) Array
Which data structure is used for implementing recursion?Read More »
a) Index value of an array can be negative
b) Elements are sequentially accessed
c) Data structure like queue or stack cannot be implemented
d) There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
a) A programming language
b) A collection of algorithms
c) A way to store and organize data
d) A type of computer hardware
Answer:
c) A way to store and organize data
a) Left outer join
b) Inner join
c) Natural join
d) Right outer join
_____ operations do not preserve non-matched tuples.Read More »
a) Domain relational calculus
b) Tuple relational calculus
c) Relational algebra
d) Query language
a) Delete from teaches;
b) Delete from teaches where Id =’Null’;
c) Remove table teaches;
d) Drop table teaches;
Which of the following command is correct to delete the values in the relation teaches?Read More »
a) Neighbour set
b) Strong entity set
c) Owner set
d) Identifying set
a) Drop table
b) Delete
c) Purge
d) Remove
Which command is used to remove a relation from an SQL?Read More »