A{c}m's {c} Quiz

5 Questions | Attempts: 202
Share

Programming Quizzes & Trivia

Questions and Answers
  • 1. 

    If((5*30 - 50*3 || ((int)6.5-(int)6.2) ||(60-12*5 || 5+3+2+1-10)))     printf("True");else     printf("False");The Output Will Be?

    • A.

      True

    • B.

      False

  • 2. 

    Int n1= 5;float n2= 5.5;long int n3= 45.5;double n4= 45.5;long long int n5= 55.5;char n6= '9';printf("%f",n1+n1+n3+n4+n5+n6); What is the output of the above program?

    • A.

      212.5

    • B.

      202.5

    • C.

      164.5

    • D.

      164

  • 3. 

    Char c = 'A'+256;     printf("%c", c);

    • A.

      @

    • B.

      $

    • C.

      A

    • D.

      %

  • 4. 

    For(x=5;x>0;x--)    {        for(c=x;c>=1;c--)        {            printf("%d",c);        }        printf("\n");    }

    • A.

      54321 4321 321 21 1

    • B.

      55555 4444 333 22 1

    • C.

      11111 2222 333 44 5

    • D.

      5 44 333 2222 11111

  • 5. 

    Int x[5]={1,55,78,216,49},*ptr;   ptr=x;   printf("%d \n",(*ptr+1));   printf("%d \n",*(ptr+1));

    • A.

      2 55

    • B.

      1 55

    • C.

      2 2

    • D.

      55 55

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 21, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 10, 2017
    Quiz Created by
    Acm Mpstme
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.