Technical Quiz ( Round-2 )

19 Questions

Settings
Please wait...
Technical Quizzes & Trivia

VISIT - JOIN THE WINNER'S WORLS


Questions and Answers
  • 1. 
    A TREE IS A HIERARCHICAL DATA STRUCTURE  THAT CONTAINS..................CONNECTED TO EACH OTHER BY.........................
    • A. 

      VERTEX ,EDGES

    • B. 

      PONTER, EDGES

    • C. 

      LIST,VERTEX

    • D. 

      PATH,VERTEX

    • E. 

      ALL OF THE ABOVE

  • 2. 
    THE MAXIMUM NUMBER OF CHILDREN A NODE CAN HAVE IS GENERALLY REFERRED AS
    • A. 

      PATH OF THE TREE

    • B. 

      LENGTH OF THE TREE

    • C. 

      DEGREE OF THE TREE

    • D. 

      ORDER OF THE TREE

    • E. 

      NONE OF THE ABOVE

  • 3. 
    THE OUTPUT OF THE FOLOWING  C PROGRAM IS #include void main() { int i=0; while (i<5) { int j=0,k; j++; k=i*j; i++; } printf("i=%d,j=%d,k=%d",i,j,k); }
    • A. 

      I=4,j=0,k=4

    • B. 

      I=5,j=0,k=4

    • C. 

      I=4,j=0,k=5

    • D. 

      I=5,j=0,k=5

    • E. 

      None of the above

  • 4. 
    The average time of a binary search is proportional to : consider the size of search list equal to N
    • A. 

      LogN

    • B. 

      N/2

    • C. 

      N(N-1)/2

    • D. 

      NlogN

    • E. 

      None

  • 5. 
    How would you round off a value from 1.66 to 2.0?
    • A. 

      Ceil(1.66)

    • B. 

      Floor(1.66)

    • C. 

      Roundup(1.66)

    • D. 

      Roundto(1.66)

    • E. 

      None

  • 6. 
    Which of the following special symbol allowed in a variable name?
    • A. 

      * (asterisk)

    • B. 

      | (pipeline)

    • C. 

      - (hyphen)

    • D. 

      -_(underscore)

    • E. 

      None of the above

  • 7. 
    Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
    • A. 

      Rem = 3.14 % 2.1;

    • B. 

      Rem = modf(3.14, 2.1);

    • C. 

      Rem = fmod(3.14, 2.1);

    • D. 

      Remainder cannot be obtain in floating point division.

  • 8. 
    Is there any difference between following declarations? i.)extern int fun(); ii.) int fun();
    • A. 

      Both are identical

    • B. 

      No difference, except extern int fun(); is probably in another file

    • C. 

      Int fun(); is overrided with extern int fun();

    • D. 

      None of these

  • 9. 
    Is the following statement a declaration or definition? extern int i;
    • A. 

      Declaration

    • B. 

      Definition

    • C. 

      Function

    • D. 

      Error

  • 10. 
     In the following program where is the variable a getting defined and where it is getting declared? #include<stdio.h> int main() { extern int a; printf("%d\n", a); return 0; } int a=20;
    • A. 

      Extern int a is declaration, int a = 20 is the definition

    • B. 

      Int a = 20 is declaration, extern int a is the definition

    • C. 

      Int a = 20 is definition, a is not defined

    • D. 

      A is declared, a is not defined

  • 11. 
    In which header file is the NULL macro defined?
    • A. 

      Stdio.h

    • B. 

      Stddef.h

    • C. 

      Stdio.h and stddef.h

    • D. 

      Math.h

    • E. 

      None

  • 12. 
     What would be the equivalent pointer expression for referring the array element a [i] [j] [k] [l]
    • A. 

      ((((a+i)+j)+k)+l)

    • B. 

      *(*(*(*(a+i)+j)+k)+l)

    • C. 

      (((a+i)+j)+k+l)

    • D. 

      ((a+i)+j+k+l)

    • E. 

      None of the above

  • 13. 
    How many times the program will print "IndiaBIX" ? #include<stdio.h> int main() { printf("IndiaBIX"); main(); return 0; }
    • A. 

      Infinite times

    • B. 

      32767 times

    • C. 

      65535 times

    • D. 

      Till stack overflows

    • E. 

      None

  • 14. 
    What does the following declaration mean? int (*ptr)[10];
    • A. 

      Ptr is array of pointers to 10 integers

    • B. 

      Ptr is a pointer to an array of 10 integers

    • C. 

      Ptr is an array of 10 integers

    • D. 

      Ptr is an pointer to array

  • 15. 
    In C, if you pass an array as an argument to a function, what actually gets passed?
    • A. 

      Value of elements in array

    • B. 

      First element of the array

    • C. 

      Base address of the array

    • D. 

      Address of the last element of array

  • 16. 
    If the two strings are identical, then strcmp() function returns
    • A. 

      -1

    • B. 

      1

    • C. 

      0

    • D. 

      Yes

    • E. 

      No

  • 17. 
    Which of the following function is used to find the first occurrence of a given string in another string?
    • A. 

      Strchr()

    • B. 

      Strrchr()

    • C. 

      Strstr()

    • D. 

      Strnset()

    • E. 

      None

  • 18. 
    What is x in the following program? #include<stdio.h> int main() { typedef char (*(*arrfptr[3])())[10]; arrfptr x; return 0; }
    • A. 

      X is a pointer

    • B. 

      X is an array of three pointer

    • C. 

      X is an array of three function pointers

    • D. 

      Error in x declaration

  • 19. 
    What will the function randomize() do in Turbo C under DOS?
    • A. 

      Returns a random number.

    • B. 

      Returns a random number generator in the specified range.

    • C. 

      returns a random number generator with a random value based on time.

    • D. 

      Return a random number with a given seed value.