Technical C And C++

8 Questions | Attempts: 59
Share

SettingsSettingsSettings
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

    Correct Answer
    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

    Correct Answer
    C. Hexadecimal system
  • 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)

    Correct Answer
    B. *(*(*(*(a+i)+j)+k)+l)
  • 4. 

    Which of the following correctly shows the hierarchy of arithmetic operations in C? 

    • A.

      / + * -

    • B.

      * - / +

    • C.

      + - / *

    • D.

      / * + -

    Correct Answer
    A. / + * -
  • 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

    Correct Answer
    D. Till stack overflows
  • 6. 

    The keyword used to transfer control from a function back to the calling function is

    Correct Answer
    return
  • 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.

    Correct Answer
    B. A reference is stored on stack.
  • 8. 

    Which of the following access specifies is used in a class definition by default? 

    • A.

      Protected

    • B.

      Public

    • C.

      Private

    • D.

      Friend

    Correct Answer
    C. Private

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 01, 2014
    Quiz Created by
    VenkateshC
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.