Technical C And C++

8 Questions | Total Attempts: 50

SettingsSettingsSettings
Please wait...
C Programming Quizzes & Trivia

Questions and Answers
  • 1. 
    How do you count number of bits in a Integer? 
    • A. 

      Not Possible

    • B. 

      Possible using assembly language

    • C. 

      Possible but have to convert Integer to binary format and check manually

    • D. 

      Solution exists in C

  • 2. 
    In which numbering system can the binary number 1011011111000101 be easily converted to? 
    • A. 

      Decimal system

    • B. 

      Octal system

    • C. 

      Hexadecimal system

    • D. 

      No need to convert

  • 3. 
    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)

  • 4. 
    Which of the following correctly shows the hierarchy of arithmetic operations in C? 
    • A. 

      / + * -

    • B. 

      * - / +

    • C. 

      + - / *

    • D. 

      / * + -

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

      Infinite times

    • B. 

      32767 times

    • C. 

      65535 times

    • D. 

      Till stack overflows

  • 6. 
    The keyword used to transfer control from a function back to the calling function is
  • 7. 
    Which of the following statement is correct? 
    • A. 

      A reference is stored on heap.

    • B. 

      A reference is stored on stack.

    • C. 

      A reference is stored in a queue.

    • D. 

      A reference is stored in a binary tree.

  • 8. 
    Which of the following access specifies is used in a class definition by default? 
    • A. 

      Protected

    • B. 

      Public

    • C. 

      Private

    • D. 

      Friend