Basics of Computers
This test consists of 20 questions related to basics of computer, database, data structures and programming languages.
Questions
Which of the following is/are the application(s) of Tree data structure?
- Arithmetic expression representation and evaluation
- Lexical analysis phase of compiler
- Syntax analysis
- Both (2) and (3)
- (1), (2) and (3) all are true
Which of the following is/are the examples of an application software?
- Linux
- Unix
- Opera
- BIOS
- All of the above
Which of the following statements is/are true?
- B Tree can be used in database.
- In B+ Tree, the root may be either leaf or an internal node with two or more children.
- In B Tree of order m, every node has at most m children.
- Both (2) and (3).
- (1), (2) and (3) all are true.
Which of the following statements is/are true?
- A perfect binary tree has 2^{(n+1)-1 nodes, where n is the depth of the tree.
- A perfect binary tree has 2^n leaf node, where n is the depth of the tree.
- A full binary tree has each node either a leaf node or internal node with exactly two non-empty children.
- Only (1) and (2) are true.
- (1) , (2) and (3) all are true.
Which of the following is an example of durability property of database transaction?
- Flight booking
- Flight ticket
- ATM
- All of the above
- None of the above
Which of the following features is not supported by an object based language?
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
- None of the above
Which of the following statements is /are false?
- A cursor defines a private area in memory, when SQL statements are executed.
- Implicit cursor are created, when any DML operation occurs in the database.
- Explicit cursors are executed by default.
- Explicit cursors can process only one record at a time.
- None of the above
Which of the following statements is/are not true?
- Triggers are executed automatically when any associated DML operation is executed.
- In row level trigger, an even is fired when any row is updated.
- Cyclic cascading in triggers can crash the database.
- DESC USER_TRIGGERS function is used to get information about the trigger.
- None of the above
What is/are the advantage(s) of using stored procedure in SQL?
- Stored procedure reduces network traffic.
- Stored procedures provide security to the database.
- Stored procedure provides maintainability to the application.
- Stored procedures are limited to T/SQL only and produce somewhat complexity.
- (1), (2) and (3) all are true.
Which of the following statements is/are true?
- RAM is a volatile memory.
- ROM is non-volatile.
- Cache memory acts as a buffer between the CPU and the main memory.
- Only (2) and (3).
- (1), (2) and (3) all are true.
Which of the following is called the Container class in Abstract Window Toolkit (AWT) in Java?
- It is an abstract superclass of AWT components.
- It is a subclass of Component class and is used to hold the other components.
- It is a top level window with a title and a border.
- It is a top level window with a title and a border and is used to take input from the user.
- None of the above
Which of the following operating systems has a very short response time?
- Real time operating system
- Network operating system
- Distributed operating system
- Time-sharing operating system
- None of the above
Which of the following is the subclass of Hashtable in Java Collection Framework?
- Properties
- Dictionary
- Vector
- Stack
- None of the above
Which of the following is a method of Vector class in Java Collection Framework?
- boolean add(Object o)
- int capacity()
- void clear()
- object clone()
- all of the above
Which of the following methods is immediately called after the start() method in an applet?
- paint()
- destroy()
- stop()
- init()
- none of the above
Which of the following statements is/are true?
- TreeSet class ensures that the elements will be sorted in the natural ascending order.
- HashSet class does not maintain the order of the elements.
- HashSet ensures that the elements have no duplicacy.
- Both (2) and (3).
- (1), (2) and (3) all are true.
Which of the following statememnts is/are false?
- A full adder has a combinational circuit of three input and two output.
- A half adder has two input and two output combinational circuits.
- XOR gate can be used in half adder, full adder and subtractor.
- Only (1) and (2).
- (1), (2) and (3) all are true.
Which of the following methods of the String class in Java is used to copy a range of characters from the given string to another character array?
- getChars()
- replace()
- replaceAll()
- both (2) and (3)
- none of the above
Which of the following Java applications is known as desktop application?
- Standalone application
- Enterprise application
- Mobile application
- Web application
- None of the above
Which of the following is not related to the Process Control Block (PCB) in the operating system?
- Program counter
- Process state
- CPU registers
- Accounting information
- None of the above