1. Question: How many times "vcampus" is get printed?
    #include<stdio.h>
    int main()
    {
        int x;
        for(x=-1; x<=10; x++)
        {
            if(x < 5)
                continue;
            else
                break;
            printf("vcampus");
        }
        return 0;
    }

    A
    Infinite times

    B
    11 times

    C
    0 times

    D
    10 times

    Note: Not available
    1. Report
  2. Question: How many times the while loop will get executed if a short int is 2 byte wide?
    #include<stdio.h>
    int main()
    {
        int j=1;
        while(j <= 255)
        {
            printf("%c %d\n", j, j);
            j++;
        }
        return 0;
    }

    A
    Infinite times

    B
    255 times

    C
    256 times

    D
    254 times

    Note: Not available
    1. Report
  3. Question: Which of the following is not logical operator?

    A
    &

    B
    &&

    C
    ||

    D
    !

    Note: Not available
    1. Report
  4. Question: In mathematics and computer programming, which is the correct order of mathematical operators ?

    A
    Addition, Subtraction, Multiplication, Division

    B
    Division, Multiplication, Addition, Subtraction

    C
    Multiplication, Addition, Division, Subtraction

    D
    Addition, Division, Modulus, Subtraction

    Note: Not available
    1. Report
  5. Question: Which of the following cannot be checked in a switch-case statement?

    A
    Character

    B
    Integer

    C
    Float

    D
    enum

    Note: Not available
    1. Report
  6. Question: Which of the following cannot be checked in a switch-case statement?

    A
    Character

    B
    Integer

    C
    Float

    D
    enum

    Note: Not available
    1. Report
  7. Question: The keyword used to transfer control from a function back to the calling function is

    A
    switch

    B
    goto

    C
    go back

    D
    return

    Note: Not available
    1. Report
  8. Question: What is the notation for following functions?
    1.  int f(int a, float b)
        {
            /* Some code */
        }
    2.  int f(a, b)
        int a; float b;
        {
            /* Some code */
        }

    A
    1. KR Notation 2. ANSI Notation

    B
    1. Pre ANSI C Notation 2. KR Notation

    C
    1. ANSI Notation 2. KR Notation

    D
    1. ANSI Notation 2. Pre ANSI Notation

    Note: Not available
    1. Report
  9. Question: 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

    Note: Not available
    1. Report
  10. Question: What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

    A
    The element will be set to 0.

    B
    The compiler would report an error.

    C
    The program may crash if some important data gets overwritten.

    D
    The array size would appropriately grow.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd