0

Programming Fundamentals

Description: Computer Programming Knowledge and Computer Applications Test for MCA Entrance and General Knowledge Tests and Preparation Materials
Number of Questions: 25
Created by:
Tags: Programming Fundamentals World of Computer Preparation Materials GK Tests MCA Entrance Computer Knowledge Computer Literacy Placement Papers Placement Jobs Placement Papers Question Papers TCS HCL Infosys IBM Placement Papers Computer Applications General Awareness and Computer Applications Computer Applications (New)
Attempted 0/25 Correct 0 Score 0

Which among these are used to store the data permanently?

  1. Structures

  2. Arrays

  3. Variables

  4. Files


Correct Option: D

Arrays and structures can be represented by

  1. text files

  2. unformatted files

  3. formatted data files

  4. none of these


Correct Option: B

Which of the following file types is used to close a file?

  1. r

  2. w

  3. rw

  4. r+


Correct Option: D

If the queue is represented by an array, then which of the following is true?

  1. There are possibilities of overflow.

  2. Efficient access to the items in the queue is not possible.

  3. Items in the middle of the queue can be removed or deleted.

  4. Items can be stored in the non-contiguous memory locations.


Correct Option: A

A file pointer is_______________________

  1. a stream pointer

  2. a buffer pointer

  3. a pointer to a file data type

  4. all of the above


Correct Option: D

_________________ function is used to check the end of file condition.

  1. NULL

  2. EOF

  3. FEOF

  4. !NULL


Correct Option: C

I/O stream can be _______

  1. a text stream

  2. a binary stream

  3. both 1 and 2

  4. an I/O operation


Correct Option: C

What is the result of the following postfix e 6 3 3 + - 3 8 2 / + + 2 $ 3 + expression?

  1. 52

  2. 172

  3. 8.5

  4. 16807


Correct Option: A

If (front == rear) then

  1. the queue contains only one item

  2. the queue is empty

  3. the queue contains two elements

  4. underflow condition will occur


Correct Option: A

____________________ file is the output of a compiler.

  1. .c

  2. .h

  3. .obj

  4. .exe


Correct Option: C

Which of the following is a static data stucture?

  1. Stacks

  2. Arrays

  3. Queues

  4. Linked lists


Correct Option: D

Among the following, which is not a type of debugging?

  1. Inspection of code

  2. Random checking

  3. Debugging, using logging

  4. Debugging, using IDE


Correct Option: B

Data types whose properties are independent of any implementation are called

  1. ADT

  2. ntegers

  3. float

  4. none of these


Correct Option: A

In a queue, the end from which an item is deleted is called

  1. rear

  2. front

  3. top

  4. begin


Correct Option: B

___________file is the output of a linker.

  1. .c

  2. .h

  3. .obj

  4. .exe


Correct Option: D

The output of the following code snippet is ___________ ( ) Unsigned int icount=1; While(icount<10); { Printf(%u,icount); }

  1. 1,2,_ _ _ 10

  2. an infinite loop

  3. 1,2,3 _ _ _ 9

  4. error in code


Correct Option: B

The expression has to be evaluated right -to-left or left -to-right depends on the operators____

  1. precedence

  2. associativity

  3. directionality

  4. none of these


Correct Option: B

_____ is used in compilers in passing an expression by recursion.

  1. Stack

  2. Queue

  3. Circular queue

  4. None of these


Correct Option: A

The output of the following code snippet is ________ ( ) Int iNum=2; Switch(iNum) { case 1.5: printf(ONE AND HALF); Break; case 2: printf(TWO); case 4: printf(FOUR); }

  1. ONE AND HALF

  2. TWO

  3. FOUR

  4. error in code


Correct Option: D

The output of the following code snippet is ___________ ( ) main( ) { int x=3,y,z; y=x=10; z=x<10; printf(n x=%d y=%d z=%d,x,y,z); }

  1. 10 10 10

  2. 10 10 0

  3. 3 10 10

  4. error in code


Correct Option: B

The output of the following code snippet is __________ ( ) main( ) { int b[]= { 10,20,30,40,50 }; int i; for(i=0; i<=4 ;i++) Printf(n %d,*(b+i)); }

  1. 1 2 3 4 5

  2. 2000 2002 2004 2006 2008

  3. 10 20 30 40 50

  4. error in code


Correct Option: C

__________________ is a pointer to a structure operator.

  1. &

  2. *

  3. ->

  4. <-


Correct Option: C

The output of the following code snippet, when num is 11 is _______ If (num%2=0) Printf(number is even); Else Printf(number is odd);

  1. number is even

  2. number is odd

  3. displays nothing

  4. error in code


Correct Option: B

______________ is the declararion of a pointer to an array.

  1. int *p[10]

  2. int (*p)[10]

  3. int *p

  4. none of these


Correct Option: B

The break statement in a nested loop results in ___________

  1. the control outside the loop stucture

  2. the control outside the innermost loop

  3. the control outside the program

  4. none of these


Correct Option: B
- Hide questions