Computer Basics

Description: Computer Basics
Number of Questions: 11
Created by:
Tags:
Attempted 0/11 Correct 0 Score 0

Which part of C program is ignored by its compiler?

  1. Preprocessor commands

  2. Functions

  3. Variables

  4. Statements and expressions

  5. Comments


Correct Option: E
Explanation:

Comments are program documentations, which help the reader to understand the code better.

Which of the following operating systems has a command line interface?

  1. Windows XP

  2. MS DOS

  3. X Window System

  4. Amoeba

  5. Windows Vista


Correct Option: B
Explanation:

MS DOS has a command line interface.

Which operator returns the address of a variable?

  1. ==

  2. >=

  3. ++

  4. &

  5. !


Correct Option: D
Explanation:

It returns the address of a variable. For example, a; will give actual address of the variable.

Which storage class allows local variables to maintain their values between function calls?

  1. Auto

  2. Register

  3. Static

  4. Extern

  5. Intern


Correct Option: C
Explanation:

The static storage class instructs the compiler to keep a local variable in existence during the lifetime of the program instead of creating and destroying it each time it comes into and goes out of scope. Therefore, making local variables static allows them to maintain their values between function calls.

In what way are the items stored in a queue?

  1. LIFO

  2. FIFO

  3. GIGO

  4. PIPO

  5. WYSIWYG


Correct Option: B
Explanation:

FIFO stands for First In First Out. A queue is a FIFO data structure.

How can an array be passed as a function argument?

  1. By value

  2. By reference

  3. By name

  4. By passing all the values stored in the array

  5. The array cannot be used as a function argument


Correct Option: B
Explanation:

While passing arrays to the argument, the name of the array is passed as an argument, i.e, starting address of memory area is passed as argument. Hence, an array is passed by reference.

Which of the following is not a storage class in C?

  1. Automatic

  2. Static

  3. Register

  4. Union

  5. Extern


Correct Option: D
Explanation:

Unions are quite similar to the structures in C. Union is also a derived data type as structure. Unions are not a memory storage class.

What is a collection of wires that transfers data between components inside a computer called?

  1. Vacuum tube

  2. Daisy chain

  3. Transmitter

  4. Bus

  5. Repeater


Correct Option: D
Explanation:

In computer architecture, a bus is a subsystem that transfers data between components inside a computer.

How can the 2's complement be obtained from the given 1's complement of a number?

  1. By adding 1

  2. By subtracting 1

  3. By complementing each bit

  4. By changing the most significant bit to 1

  5. By changing the most significant bit to 0


Correct Option: A
Explanation:

2's complement of a number is obtained by adding 1 to the 1's complement of that number.

Which of the following is a reservation protocol for allocating a multiple access channel?

  1. PURE ALOHA

  2. SLOTTED ALOHA

  3. 1-persistent CSMA

  4. Non-persistent CSMA

  5. Bit Map Protocol


Correct Option: E
Explanation:

Bit Map Protocol is also a contention system. In Bit Map Protocol, the desire to transmit is broadcast before the actual transmission. Such protocols are called reservation protocols.

Which of the following is a property of ATM networks?

  1. It is connectionless.

  2. Cell delivery is guaranteed but their order is not.

  3. Cell delivery is not guaranteed but their order is guaranteed.

  4. Cell delivery is guaranteed and their order too.

  5. It is a circuit-switched technology.


Correct Option: C
Explanation:

ATM networks are connection-oriented. Making a call requires first sending a message to set up a connection. After that, subsequent cells follow the same path to the destination. Cell delivery is not guaranteed, but their order is guaranteed. If cells 1 and 2 are sent in that order, then they will arrive in that order, never first 2 and then 1.

- Hide questions