MCQ in Networks and DBMS

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

1.

In the following Query, which of the following can be placed in the Query's
blank portion to display the salary from highest to lowest amount, and
sorting the employs name alphabetically?
SELECT *  
FROM instructor  
ORDER BY salary ____, name ___;  
A. Ascending, Descending C. Desc, Asc
B. Asc, Desc D. All of the above

2. Which one of the following refers to the copies of the same data (or
information) occupying the memory space at multiple places.
A. Data Repository C. Data Mining
B. Data Inconsistency D. Data Redundancy
3. In the relational table, which of the following can also be represented by the
term "attribute"?
A. Entity C. Column
B. Row D. Both B &C

4. Which of the following commands is used to save any transaction


permanently into the database?
A. Commit C. Savepoint
B. Rollback D. None of the above

5. Which of the following key is generally used to represents the relationships


between the tables?
A. Primary key C. Secondary key
B. Foreign key D. None of the above

6. The length of an IPv6 address is?


A. 32bit C. 128bit
B. 64bit D. 256bit

7. Which of the following layers does the HTTP protocol work on?
A. Physical layer C. Data-link layer
B. Application layer D. None of the these

8. Which of the following protocols is the bit-oriented protocol?


A. SSL C. HDLC
B. HTTP D. All of these

9. Which of the following algorithms is not used in asymmetric-key


cryptography?
A. RSA algorithm C. Electronic code book algorithm
B. Diffie-Hellman algorithm D. None of the mentioned

10. Which of the following cannot be used as a medium for 802.3 ethernet?
A. A thin coaxial cable C. A microwave link
B. A twisted pair cable D. A fiber optical cable
11. Which of the following option leads to the portability and security of Java?
A. Bytecode is executed by JVM
B. The applet makes the Java code secure and portable
C. Use of exception handling
D. Dynamic binding between objects

12. What will be the output of the following program?


public class Test {  
public static void main(String[] args) {  
    int count = 1;  
    while (count <= 15) {  
    System.out.println(count % 2 == 1 ? "***" : "+++++");  
    ++count;  }}} 
A. 15 times *** C. 8 times *** and 7 times +++++
B. 15 times +++++ D. Both will print only once
13. In Java, in which process, a local variable has the same name as one of the
instance variables?
A. Serialization C. Abstraction
B. Variable Shadowing D. Multi-threading

14. Which of these classes are the direct sub classes of the Throwable class?
A. RuntimeException and Error class
B. Exception and VirtualMachineError class
C. Error and Exception class
D. IOException and VirtualMachineError class

15. The result of evaluating prefix expression */b+-dacd, where a=3, b=6, c=1,
d=5 is ?
A. 0 C. 10
B. 5 D. 15

16. Which of the following is the disadvantage of the array?


A. Stack and Queue data structures can be implemented through an array.
B. Index of the first element in an array can be negative
C. Wastage of memory if the elements inserted in an array are lesser than the
allocated size
D. Elements can be accessed sequentially.

17. When the user tries to delete the element from the empty stack then the
condition is said to be a ____
A. Underflow C. Overflow
B. Garbage collection D. None of the above
18. The size of virtual memory is based on which of the following?
A. CPU C. Address bus
B. RAM D. Data bus

19. Dijkstra’s algorithm is used to solve __________  problems


A. Network Lock C. Al pair Shortest path
B. Single Source Shortest Path D. Sorting

20. What is the time complexity of the following code in C++?


A. O(n)
B. O(nˆ2)
C. O(1)
D. O(log n)

You might also like