0

Information Technology

Attempted 0/15 Correct 0 Score 0

Which of the following is not a TCL command?

  1. Commit

  2. Savepoint

  3. Rollback

  4. Set transaction

  5. Grant


Correct Option: E
Explanation:

It gives user's access privileges to database. Hence, it is DCL command and not a TCL command. 

What is the name/term used for declaration of function inside a calling program?

  1. Return

  2. Passing arguments

  3. Function

  4. Prototype

  5. Recursion


Correct Option: D
Explanation:

When function declaration is given in calling function or program, then the declaration is called prototype.

Which of the following represents the Reverse Polish Notation?

  1. A + B

  2. G/H

  3. AB + -

  4. / + AB - CD

  5. (A + B)* C


Correct Option: C
Explanation:

Reverse Polish Notation

Which one of the following is the fastest memory?

  1. Virtual memory

  2. Hard disk

  3. Magnetic tape

  4. DVD

  5. Cache memory


Correct Option: E
Explanation:

Cache memory is the fastest memory.

Which of the following operations returns a pointer to the brother of the node, otherwise returns the null pointer?

  1. Create

  2. Data

  3. Brother (sibling)

  4. Rchild

  5. EmptyBT


Correct Option: C
Explanation:

It returns the pointer to the brother of the node, otherwise returns the null pointer.

Which one is the best example of unary operator?

  1. a = a+ 5;

  2. a = a - 5;

  3. a = ++a;

  4. a = a * 5;

  5. None of these


Correct Option: C
Explanation:

Single operand is used for ++ incremental operator.

How structure array elements can be accessed?

  1. Using FIFO

  2. Using LIFO

  3. Using dot operator

  4. Using index number

  5. Using base address


Correct Option: C
Explanation:

It is used to access the element of array and structures.

What is the main difference between (a) 486 SX and (b) 486 DX family?

  1. (b) has numeric co-processor but (a) does not have it.

  2. (a) contains catch controller but (b) does not have it.

  3. (a) has numeric co-processor but (b) does not have it.

  4. (b) has catch controller but (a) does not have it.

  5. None of these


Correct Option: A
Explanation:

486 DX included a built-in math co-processor,  which is also called numeric co-processor but 486 SX does not have such co-processor.

Which type of error can be diagnosed by compiler?

  1. Program error

  2. User error

  3. Logical error

  4. Syntax error

  5. None of these


Correct Option: D
Explanation:

Syntax errors can be diagnosed by compiler.

When int array [7] is declared, the term array [5] represents

  1. five elements of array

  2. 5th element of array

  3. 6th element of array

  4. base address of array

  5. none of these


Correct Option: C
Explanation:

Correct answer

What is the name of the scheme used to replace every bad sector, using disk controller, logically with one of the available spare sectors in the disk?

  1. Sector sparing

  2. Sector replacing

  3. Sector segregation

  4. Sector elimination

  5. Sector slipping


Correct Option: A
Explanation:

Sector sparing is the term by which the disk controller can be asked to replace each bad sector logically with one of the spare sectors available in the disk. 

What is fundamental and conceptual unit in computer?

  1. Floppy

  2. Hard drive

  3. OS

  4. CPU

  5. IC


Correct Option: E
Explanation:

IC is the fundamental and conceptual unit of computer.

Expand MAR in terms of memory.

  1. Memory Active Register

  2. Memory Address Register

  3. Memory Access Register

  4. Memory Access Rate

  5. Memory Address Rate


Correct Option: B
Explanation:

In a computer, the Memory Address Register (MAR) is a CPU register that either stores the memory address from which data will be fetched to the CPU or the address to which data will be sent and stored.

Find the error in the code assuming that preprocessor directives are correct. int fun (int val) {
val > 20? return(15): return(30); } void main( ) {
int fun( int );
int final;
final = fun (20);
printf("%dn", final); }

  1. There is no error and program will execute normally.

  2. Preprocessor directives are not used in the program.

  3. A function cannot be declared above main.

  4. Return statement should not be used with conditional operators.

  5. None of the above


Correct Option: D
Explanation:

return keyword cannot be used with conditional operator or with ternary operator. 

Where is the Hamming code used?

  1. Programming code

  2. Pseudo code

  3. Data communication

  4. AutoCAD

  5. Input/Output


Correct Option: C
Explanation:

Hamming code is a set of error-correction codes that can be used to detect and correct bit errors that can occur when computer data is moved or stored, especially in data communication.

- Hide questions