← Question papers

TRE1 — General Studies And Computer Science

· Set A

GS: Hindi / English · Language questions stay in their original language.

Instructions

120 questions · 120 marks · 2 hours

Choose one option per question.

Tap an option to check it, or open “See answer”.

Page 2 / 3
← Previous pageNext page →
Question 51
What does the control unit generate to control other units?
See answer

Correct answer: (C) Control signals
The control unit generates control signals to drive the other units.

1 marks · 2023 · Set A
Question 52
Which of the following is a user-defined header file extension used in C++?
See answer

Correct answer: (C) h
A user-defined header file carries the extension .h and is included within quotation marks.

1 marks · 2023 · Set A
Question 53
The most common addressing technique employed by a CPU is
See answer

Correct answer: (D) More than one of the above
Direct, indirect and immediate addressing are all commonly employed by the CPU, so the answer is ‘more than one’.

1 marks · 2023 · Set A
Question 54
What will happen if the following C++ statement is compiled and executed? int *ptr = NULL; delete ptr;
See answer

Correct answer: (B) The program is compiled and executed successfully
Calling delete on a NULL pointer is safe in C++—nothing happens—so the program compiles and runs successfully.

1 marks · 2023 · Set A
Question 55
In various devices, _____ are used to overcome the difference in data transfer speed.
See answer

Correct answer: (B) Buffer registers
Buffer registers are used to overcome the difference in data transfer speed, holding the data between a fast unit and a slow one.

1 marks · 2023 · Set A
Question 56
What do we use to extend the connectivity of the processor bus?
See answer

Correct answer: (A) PCI bus
The PCI bus is used to extend the connectivity of the processor bus, so that many devices can be attached.

1 marks · 2023 · Set A
Question 57
In memory-mapped I/O
See answer

Correct answer: (A) The I/O devices and the memory share the same address space
In memory-mapped I/O the devices share the same address space as the memory, so the ordinary memory instructions reach them.

1 marks · 2023 · Set A
Question 58
What is the addressing called that is used in an instruction of the form ADD X Y?
See answer

Correct answer: (C) Absolute
In an instruction such as ADD X Y the full addresses of the operands are given outright, so the addressing is absolute.

1 marks · 2023 · Set A
Question 59
Which of the following correctly declares an array in C++?
See answer

Correct answer: (C) int array[10];
In C++ an array is declared as int array[10];—the type, the name and the size in brackets.

1 marks · 2023 · Set A
Question 60
SQL views are also known as
See answer

Correct answer: (B) Virtual tables
An SQL view is called a virtual table, since it stores no data of its own—it is produced by its query.

1 marks · 2023 · Set A
Question 61
How many primary keys can there be in a table?
See answer

Correct answer: (A) Only 1
A table can have only one primary key, even if that key is made up of several columns.

1 marks · 2023 · Set A
Question 62
What will be the output of the following C++ code? #include<iostream> #include<string> using namespace std; int main(int argc, char const *argv[]) { char s1[6]="Hello"; char s2[6]="World"; char s3[12]=s1+" "+s2; cout<<s3; return 0; }
See answer

Correct answer: (C) Error
Character arrays cannot be joined with + in C++, so this code gives a compile-time error.

1 marks · 2023 · Set A
Question 63
Which of the following is not a constraint in SQL?
See answer

Correct answer: (C) Union
UNION is an operator that joins the results of two queries, not a constraint; primary key and not null are constraints.

1 marks · 2023 · Set A
Question 64
Which of the following is not a valid aggregate function?
See answer

Correct answer: (B) COMPUTE
COUNT, SUM, AVG, MIN and MAX are aggregate functions; there is no such valid function as COMPUTE.

1 marks · 2023 · Set A
Question 65
Who is the father of computer?
See answer

Correct answer: (B) Charles Babbage
Charles Babbage is called the father of the computer, for his conception of the Analytical Engine.

1 marks · 2023 · Set A
Question 66
If ASC or DESC is not specified after an SQL ORDER BY clause, which of the following is used by default?
See answer

Correct answer: (B) ASC
With nothing written after ORDER BY, SQL takes ascending order (ASC).

1 marks · 2023 · Set A
Question 67
In IA-32 architecture, along with the general flags, which of the following conditional flags is provided?
See answer

Correct answer: (D) More than one of the above
IA-32 provides TF, IF and IOPL besides the general flags, so the answer is ‘more than one’.

1 marks · 2023 · Set A
Question 68
Which of the following is true about the HAVING clause?
See answer

Correct answer: (C) Similar to WHERE, but used for groups rather than rows
HAVING is like WHERE, except that it puts a condition on the groups formed by GROUP BY rather than on rows.

1 marks · 2023 · Set A
Question 69
The method of accessing I/O devices by repeatedly checking the status flags is
See answer

Correct answer: (A) Program-controlled I/O
Working a device by checking its status flags over and over is program-controlled I/O, that is polling.

1 marks · 2023 · Set A
Question 70
_____ clause creates a temporary relation for the query on which it is defined.
See answer

Correct answer: (A) WITH
The WITH clause creates a temporary relation for the query it is defined on, to be used within that query.

1 marks · 2023 · Set A
Question 71
The SQL statement SELECT ROUND (65.726, -1) FROM DUAL; prints
See answer

Correct answer: (A) 70
ROUND(65.726, −1) means rounding to the tens place, so the result is 70.

1 marks · 2023 · Set A
Question 72
A matrix contains m rows and n columns. It is called a Sparse Matrix if
See answer

Correct answer: (A) Total number of zero elements > (m × n)/2
A matrix is called sparse when the number of zero elements exceeds half the total, that is (m × n)/2.

1 marks · 2023 · Set A
Question 73
_____ command makes the updates performed by a transaction permanent in the database.
See answer

Correct answer: (B) COMMIT
COMMIT makes a transaction's changes permanent in the database; ROLLBACK undoes them.

1 marks · 2023 · Set A
Question 74
Which of the following is the basic approach for joining tables?
See answer

Correct answer: (D) More than one of the above
Natural join and subqueries are both basic approaches to joining tables, so the answer is ‘more than one’.

1 marks · 2023 · Set A
Question 75
What is the time complexity of an infix-to-postfix conversion algorithm?
See answer

Correct answer: (B) O(N)
In infix-to-postfix conversion each symbol is read once and pushed once, so the time complexity is O(N).

1 marks · 2023 · Set A
Question 76
Which of the following is an advantage of the array data structure?
See answer

Correct answer: (B) Easier to access the elements in an array
The merit of an array is just this—any element can be reached directly by its index. Mixed types are not stored in it and the index starts from zero.

1 marks · 2023 · Set A
Question 77
Which data structure is mainly used for implementing a recursive algorithm?
See answer

Correct answer: (B) Stack
A recursive algorithm keeps the record of each call on a stack, so that is the structure mainly used.

1 marks · 2023 · Set A
Question 78
What is the postfix expression for the corresponding infix expression a + b * c + (d * e)?
See answer

Correct answer: (A) abc * + de * +
In a + b * c + (d * e) the multiplications come first, so the postfix form is abc * + de * +.

1 marks · 2023 · Set A
Question 79
Which one of the following is not a type of queue?
See answer

Correct answer: (E) None of the above
Linear, circular and double-ended are all types of queue, so the answer is ‘None of the above’.

1 marks · 2023 · Set A
Question 80
The necessary condition to be checked before deletion from a queue is
See answer

Correct answer: (B) Underflow
Before taking an element out of a queue one has to see that it is not empty—that is the check for underflow.

1 marks · 2023 · Set A
Question 81
After performing the following operations, what does the final list contain? InsertFront(10); InsertFront(20); InsertRear(30); DeleteFront(); InsertRear(40); InsertRear(10); DeleteRear(); InsertRear(15); display();
See answer

Correct answer: (C) 10 30 40 15
Work the operations through—[10], [20,10], [20,10,30], deleting from the front [10,30], then [10,30,40], [10,30,40,10], deleting from the rear [10,30,40], and finally [10,30,40,15].

1 marks · 2023 · Set A
Question 82
A linear data structure in which insertion and deletion operations can be performed from both ends is
See answer

Correct answer: (C) Deque
A linear structure allowing insertion and deletion at both ends is a deque.

1 marks · 2023 · Set A
Question 83
A circular queue is implemented using an array of size MAX_SIZE, with indices starting at 0, front pointing to the first element and rear to the last. Which condition specifies that the circular queue is empty?
See answer

Correct answer: (A) Front = rear = −1
A circular queue is empty when front = rear = −1, which is also its initial state.

1 marks · 2023 · Set A
Question 84
What is the functionality of the following code? public void fun(int x) { q1.offer(x); }
See answer

Correct answer: (B) Perform push() with pop as the costlier operation
q1.offer(x) simply enqueues, so push stays cheap; on removal the elements must be shifted to the other queue, which makes pop the costlier operation.

1 marks · 2023 · Set A
Question 85
Which one of the following techniques is not used in the binary tree?
See answer

Correct answer: (A) Randomized traversal
A binary tree is traversed in preorder, inorder and postorder; there is no such technique as randomized traversal.

1 marks · 2023 · Set A
Question 86
Which of the following is not a feature of DBMS?
See answer

Correct answer: (C) Single-user access only
A DBMS lets many users work at once, so ‘single-user access only’ is not a feature of it.

1 marks · 2023 · Set A
Question 87
Which of the following statements is not true about the doubly linked list?
See answer

Correct answer: (C) Implementation of a doubly linked list is easier than that of a singly linked list.
A doubly linked list can be traversed both ways, but every node must carry an extra pointer—so its implementation is not easier but harder.

1 marks · 2023 · Set A
Question 88
The values appearing in given attributes of any tuple in the referencing relation must likewise occur in specified attributes of at least one tuple in the referenced relation, according to the _____ integrity constraint.
See answer

Correct answer: (A) Referential
A value in the referencing relation must also occur in the referenced one: that is the referential integrity constraint, enforced by a foreign key.

1 marks · 2023 · Set A
Question 89
Which of the following options is not true about the binary search tree?
See answer

Correct answer: (E) None of the above
In a binary search tree the left child is smaller, the right child larger, and both subtrees are search trees too—all three statements hold, so the answer is ‘None of the above’.

1 marks · 2023 · Set A
Question 90
The expression Y = AB + BC + AC shows the _____ operation.
See answer

Correct answer: (B) SOP
Y = AB + BC + AC is a sum of products, so it shows the SOP form.

1 marks · 2023 · Set A
Question 91
What are the canonical forms of Boolean expressions?
See answer

Correct answer: (C) SOM and POM
The canonical forms of a Boolean expression are SOM (sum of minterms) and POM (product of maxterms).

1 marks · 2023 · Set A
Question 92
Derive the Boolean expression for the logic circuit shown: inputs A and B enter an OR gate; its output is combined with C, then D, then E by successive AND gates.
See answer

Correct answer: (A) C(A + B)DE
A and B go through an OR, and C, D and E are then ANDed in turn, so the expression is C(A + B)DE.

1 marks · 2023 · Set A
Question 93
Boolean algebra can be used
See answer

Correct answer: (D) More than one of the above
Boolean algebra serves in designing digital computers, in building logic symbols and in circuit theory alike, so the answer is ‘more than one’.

1 marks · 2023 · Set A
Question 94
What does the control unit generate to control other units?
See answer

Correct answer: (C) Control signals
The control unit puts out control signals, by which each unit learns what to do and when.

1 marks · 2023 · Set A
Question 95
To display time in railway stations, which digital circuit is used?
See answer

Correct answer: (A) Seven-segment decoder
A seven-segment decoder is used to show the time at railway stations, lighting the digits as segments.

1 marks · 2023 · Set A
Question 96
What kind of transmission medium is most appropriate to carry data in a computer network exposed to electrical interference?
See answer

Correct answer: (B) Optical fiber
In optical fibre the signal travels as light, so electrical interference has no effect on it.

1 marks · 2023 · Set A
Question 97
Which network topology requires a central controller or hub?
See answer

Correct answer: (A) Star
In the star topology every node is attached to a central hub, so a central controller is required.

1 marks · 2023 · Set A
Question 98
A collection of hyperlinked documents on the Internet forms the
See answer

Correct answer: (A) World Wide Web (WWW)
The collection of hyperlinked documents on the Internet is the World Wide Web.

1 marks · 2023 · Set A
Question 99
Which of the following is not a step in the Header translation procedure?
See answer

Correct answer: (C) The IPv6 flow label is considered
In header translation the IPv6 flow label is dropped, there being no field for it in IPv4—so ‘the flow label is considered’ is not a step in the procedure.

1 marks · 2023 · Set A
Question 100
Which one of the following would breach the integrity of a system?
See answer

Correct answer: (B) Full access rights for all users
Giving all users full access rights lets anyone alter the data, which breaches the integrity of the system.

1 marks · 2023 · Set A
Page 2 / 3
← Previous pageNext page →