0

Computers Aptitude

Attempted 0/60 Correct 0 Score 0

A name or number used to identify a storage location is called a/an

  1. byte

  2. record

  3. address

  4. constant


Correct Option: C
Explanation:

Correct Answer: address

Which of the following is an open source software?

  1. Windows

  2. Macintosh

  3. Linux

  4. NetWare


Correct Option: C
Explanation:

Linux is an open source software which is assembled under the model of free and open-source software development and distribution.

Which computer memory is used for storing programs and data currently being processed by the CPU?

  1. Mass memory

  2. Internal memory

  3. Non-volatile memory

  4. PROM


Correct Option: B

The fields in a structure of a C program are by default

  1. protected

  2. public

  3. private

  4. static


Correct Option: B

The output that is obtained on the screen is called

  1. Hard copy

  2. Soft copy

  3. Print copy

  4. VDU


Correct Option: B

Offline device is

  1. a device which is not connected to CPU

  2. a device which is connected to CPU

  3. a direct access storage device

  4. an I/O device


Correct Option: A

Personnel who design, program, operate and maintain computer equipment refers to

  1. console-operator

  2. programmer

  3. people ware

  4. system analyst


Correct Option: C

The distinguishable parts of a record are called

  1. files

  2. data

  3. database

  4. fields


Correct Option: D

Which of the following is a computer program that converts an assembly language to machine language?

  1. Compiler

  2. Interpreter

  3. Assembler

  4. Comparator


Correct Option: C

What type of software is most useful in financial planning and calculation?

  1. Graphics

  2. Communication

  3. Database

  4. Spreadsheet


Correct Option: D

RAM is used as a short memory because it is/has

  1. volatile

  2. expensive

  3. small capacity

  4. programmable


Correct Option: A

Which command is used to copy a file in Unix?

  1. copy

  2. cp

  3. cpio

  4. tar


Correct Option: B

You can add a date to a document by

  1. inserting a text date

  2. inserting a date field that will update automatically

  3. typing date manually

  4. inserting a constant labeled date


Correct Option: B

C++ is a/an

  1. low level language

  2. machine language

  3. object oriented language

  4. assembly language


Correct Option: C

The first step in problem solving process is to

  1. plan the algorithm

  2. analyze the problem

  3. desk-check the algorithm

  4. code the algorithm


Correct Option: B

Which of the following control structures is used in every program?

  1. Repetition

  2. Selection

  3. Sequence

  4. Switching


Correct Option: C

The directives for the pre-processors begin with

  1. ampersand symbol (&)

  2. two slashes (//)

  3. hash symbol ( # )

  4. less than symbol ( < )


Correct Option: C

Which of the following is/are conditional operator(s)?

  1. Double Ampersand (&&)

  2. Double Pipeline (||)

  3. Question mark and colon (? :)

  4. Question mark (?)


Correct Option: C

Observe the following statements and decide what do they do: string mystring; getline(cin, mystring);

  1. reads a line of string from cin into mystring

  2. reads a line of string from mystring into cin

  3. cin cannot be used in this way

  4. Function declaration is wrong


Correct Option: A

The unique function in C++ program by where all C++ programs start their execution, is

  1. Start ( )

  2. Begin( )

  3. Main ( )

  4. Output( )


Correct Option: C

In case of arguments passed by values when calling a function such as Z = addition (x,y),

  1. Any modifications to the variables x & y from inside the function will not have any effect outside the function.

  2. The variables x and y will be updated when any modification is done in the function.

  3. The variables x and y will be passed back to the function addition.

  4. The result of a function cannot be assigned to a variable Z.


Correct Option: A

What is the difference between x (x without quotes) and 'x' (x with quotes)?

  1. The first x refers to a variable and the second one 'x' refers to the character constant.

  2. The first x is a character constant and second one 'x' is the string literal.

  3. Both are same

  4. The first x is a character constant and second one 'x' is a pointer.


Correct Option: A

A class having no name

  1. is not allowed

  2. cannot have a constructor

  3. cannot have a destructor

  4. cannot be passed as an argument


Correct Option: A

Which of the following statements is true about pre-processor directives?

  1. These are lines read and processed by the preprocessor.

  2. They do not produce any code by themselves.

  3. These must be written within the main program.

  4. They end with a colon.


Correct Option: A

A variable is a

  1. string that varies during program execution

  2. portion of memory to store a determined value

  3. number that is frequently required in a program

  4. fixed value


Correct Option: B

Forgetting to include a header file like “math.h” will result in

  1. compilation error

  2. warning when the program is compiled

  3. warning when the program is executed

  4. error at link time


Correct Option: A

Which of the following is a selection statement in C++?

  1. Break

  2. Goto

  3. Exit

  4. Switch


Correct Option: D

In case of pass by reference

  1. the value of the variable is passed to the function so that it can manipulate it

  2. the location of variable in memory is passed to the function so that it can use the same memory area for its processing

  3. the value of the variable cannot be changed within the calling function

  4. the calling function cannot return the manipulated value


Correct Option: B

What is the output of the following code? #include<stdio.h> void main ( ) { int s=0; while (s++<10) { if(s<4&&s<9) continue; printf(“ %d/t”,s); } }

  1. 1 2 3 4 5 6 7 8 9

  2. 1 2 3 10

  3. 4 5 6 7 8 9 10

  4. 4 5 6 7 8 9


Correct Option: C

___________ is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind.

  1. Class

  2. Inheritance

  3. Polymorphism

  4. Aggregation


Correct Option: A

The return data type of void means

  1. a void area in memory is returned so that you can populate it

  2. no data type is returned

  3. void is not a valid data type

  4. integer data type is returned


Correct Option: B

Array passed as an argument to a function is interpreted as

  1. address of the number of elements of the array

  2. values of the first elements of the array

  3. address of the first element of the array

  4. number of elements of the array


Correct Option: C

What happens when you try to assign a value larger than the maximum possible integer to an int variable in C++?

  1. The program terminates

  2. You get an overflow error

  3. The value becomes a negative value

  4. The value becomes zero


Correct Option: C

A class can have many methods with the same name, as long as the number of parameters is different. This is known as

  1. method overloading

  2. method invocating

  3. method overriding

  4. method labeling


Correct Option: A

Which of the following is not a limitation of binary search algorithm?

  1. It must use a sorted array.

  2. The requirement of sorted array is expensive when a lot of insertion and deletions are needed.

  3. There must be a mechanism to access middle element directly.

  4. The binary search algorithm is not efficient when the data elements are more than 1000.


Correct Option: D

Which of the following statements is the most appropriate regarding recursion?

  1. We should not use recursion because iteration is always more efficient.

  2. We write less code if we use iteration instead of recursion.

  3. Recursion is always the most efficient technique to solve problems.

  4. In recursion, we divide a problem into subtasks where one subtask can be a smaller version of the original problem.


Correct Option: D

Assume the following declarations in C++ int num [5] = {3, 4, 6, 2, 1} ; int *p = num;

Which of the following is correct?

  1. num[1] is same as p+1

  2. num[2] is same as &(p+2)

  3. num[3] is same as *(p+3)

  4. num is same as *p


Correct Option: C

Select the proper object type in C++. __________ file (“file. dat”, ios::in | ios::out)

  1. iostream

  2. fstream

  3. ofstream

  4. ifstream


Correct Option: B

Which two of the following statements are true about constructors? I. A constructor has no return type and is therefore a void method. II. A constructor has the same name as the class. III. A class can have more than one constructor. IV. Constructors are called like any other method.

  1. III and IV

  2. I and II

  3. II and III

  4. I and IV


Correct Option: C

Defining a class so that the implementation of the data and methods of the class are not known to the programmers who use the class is called

  1. data binding

  2. polymorphism

  3. encapsulation

  4. inheritance


Correct Option: C

Which data structure allows deleting data elements from front and inserting at rear ends?

  1. Stacks

  2. Queues

  3. Linked list

  4. Bubble sort


Correct Option: B

If Infix = (a + b) * (c - d) / (e + f) is the INFIX expression, then what will be its Postfix value in POSTFIX expression?

  1. Postfix = a b + c d * -e f + /

  2. Postfix = a b + c d - * e f + /

  3. Postfix = a b + c d - * / +

  4. Postfix = e f + a b + c d * - /


Correct Option: B

The operation for removing an entry from a stack is traditionally called

  1. delete

  2. peek

  3. pop

  4. remove


Correct Option: C

The memory address of fifth elements of an array can be calculated by the formula

  1. LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array

  2. LOC (Array[5]=Base(Array[5])+(5-lower bound), where w is the number of words per memory cell for the array

  3. LOC(Array[5]=Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array

  4. LOC (Array[5]=Base(Array)+w(5-Upper bound), where w is the number of words per memory cell for the array


Correct Option: A

Who invented Boolean algebra?

  1. Von Neumann

  2. Donald E. Knuth

  3. George Boole

  4. Charles Babbage


Correct Option: C

In base 5, which number is equivalent to 1000 base-10?

  1. 12444

  2. 20024

  3. 10030

  4. 13000


Correct Option: D

If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

  1. ABCD

  2. ABDC

  3. DCAB

  4. DCBA


Correct Option: D

A NOR gate is ON only when all its inputs are

  1. ON

  2. Positive

  3. High

  4. OFF


Correct Option: D

Which of the following Boolean expressions is always true?

  1. 10 <= x && !(x >= 10)

  2. y = = x + y && x = = x + y

  3. 10 <= x | | !( x >= 10)

  4. y = = x + y | | x = = x + y


Correct Option: C

The term 'baud' is a measure of

  1. speed at which data travels over the communication line

  2. memory capacity

  3. instruction execution time

  4. small initialization program to start up a computer


Correct Option: A

Find out the error in following block of code. If (x = 100) cCout << “x is 100” ;

  1. 100 should be enclosed in quotations.

  2. There is no semicolon at the end of first line.

  3. “Equals to” operator mistake.

  4. Variable x should not be inside the quotation.


Correct Option: C

In the context of open source technologies, what is the meaning of OSI and FSF acronyms/abbreviations?

  1. Open System Interconnection and Flight Safety Foundation

  2. Open System Interchange and Flight Safety Foundation

  3. Open Source Initiative and Free Software Foundation

  4. Open Source Instrument and Financial Stability Forum


Correct Option: D

Ethernet uses

  1. bus topology

  2. ring topology

  3. mesh topology

  4. star topology


Correct Option: A

Which of the following is an advantage of using fiber optics data transmission?

  1. Resistance to data theft

  2. Fast data transmission rate

  3. Low noise level

  4. All of above


Correct Option: D

Consider the following function: void f(unsigned int n) { do { putchar ('0' + (n % 10)) ; } while (n /= 10) ; putchar (' n') ; }

What is the output of f(837)?

  1. 387

  2. 738

  3. 800

  4. 700


Correct Option: B

What does printf(“%d, %d ”, 5/3, 5 % 3) print to standard output?

  1. 1.66, 1 (That is, '1.66', a comma, a space, a '1', and a newline character)

  2. 1.6, 2 (That is, '1.6', a comma, a space, a '2', and a newline character)

  3. 1.666, 0 (That is, '1.666', a comma, a space, a '0', and a newline character)

  4. 1, 2 (That is, a '1', a comma, a space, a '2', and a newline character)


Correct Option: D

What is a 'tuple' in RDBMS?

  1. A row or record in a database table

  2. Another name for the key linking different tables in a database

  3. An attribute attached to a record

  4. Another name for a table in an RDBMS


Correct Option: A

A SELECT statement can be used to perform these three functions: Choose rows from a table Choose columns from a table Bring together data that is stored in different tables by creating a link between them

Which set of keywords describes the above capabilities?

  1. Difference, projection, join

  2. Selection, projection, join

  3. Selection, intersection, join

  4. Intersection, projection, join


Correct Option: B

The K-map equation for following truth table is

   
A B Y
0 0 0
0 1 0
1 0 1
1 1 1
  1. AB + A’B’

  2. A’B + AB’

  3. AB + AB’

  4. A’B + AB


Correct Option: C

What is “operator overloading”?

  1. To re-define built-in operators in a programming language (i.e. C++) to work with objects.

  2. An event that arises when a computer is overheated.

  3. A C++ program to process data in parallel.

  4. A strategy in C++ to avoid deadlock.


Correct Option: A
- Hide questions