1. Question: What will be printed on the standard output as a result of the following code snippet?
    int funr(int x, int y)
    {
            if(x <= 0)
            {
                       return y;
            }
            else
            {
                    return (1+funr(x-1,y));
            }
    }
    
    void main()
    {
        printf("%d",funr(2,3));
    }

    A
    2

    B
    3

    C
    5

    D
    6

    E
    9

    Note: Not available
    1. Report
  2. Question: Which header file are methods(or macros) isalpha(), islower() a part of?

    A
    stdio.h

    B
    ctype.h

    C
    string.h

    D
    math.h

    E
    None

    Note: Not available
    1. Report
  3. Question: What would be printed on the standard output as a result of the following code snippet?
    #define Name Manish
    main()
    {
    printf("My name""Name");
    }

    A
    My name Manish

    B
    My nameName

    C
    Results in Compilation Error

    D
    Compilation Error

    E
    None

    Note: Not available
    1. Report
  4. Question: What will be printed on the standard output as a result of the following code snippet?
    void main()
    {
        int i,j,k;
        i=4;
        j=30;
        k=0;
        k=j++/i++;
        ++k;
        printf("%d %d %d",i,j,k);
    }

    A
    5 31 8

    B
    5 31 7

    C
    5 31 6

    D
    4 30 7

    E
    None

    Note: Not available
    1. Report
  5. Question: What will be printed on the standard output as a result of the following code snippet?
    main()
    {
            int num = 425;
            printf("%d", printf("%d", num));
    }

    A
    Will result in Compilation Error

    B
    4425

    C
    4253

    D
    3435

    E
    None

    Note: Not available
    1. Report
  6. Question: What would be printed on the standard output as a result of the following code snippet?
    main()
    {
    
            signed char i = 1;
    
            for (; i<=255; i++)
    
            printf ("%d ",i);
    
            return 0;
    
    }

    A
    Compilation Error

    B
    1 2 3 ... 255

    C
    1 2 3 . . . 127

    D
    1 2 3 . . . 127 -128 -127 ... 0 1 2 3 . . . (infinite times)

    E
    None

    Note: Not available
    1. Report
  7. Question: What would be printed on the standard output as a result of the following code snippet?
    #define max(a, b) ((a) > (b)?(a):(b))
    main()
    {
            int a=4;
            float b=4.5;
            printf("%.2f\n",max(a, b));
    }

    A
    Results in Compilation Error

    B
    Undefined value

    C
    4.50

    D
    4.0

    E
    None

    Note: Not available
    1. Report
  8. Question: Which of the following is not a file related function?

    A
    fgetc()

    B
    puts()

    C
    fputc()

    D
    fscanf()

    E
    fprintf()

    Note: Not available
    1. Report
  9. Question: What would be printed on the standard output as a result of the following code snippet?
    main()
    {
    enum {red, green, blue = 6, white};
    printf("%d %d %d %d", red, green, blue, white);
    return 0;
    }

    A
    0 1 6 2

    B
    0 1 6 7

    C
    Will result in Compilation Error

    D
    0 1 6 8

    E
    None

    Note: Not available
    1. Report
  10. Question: What would be printed on the standard output as a result of the following code snippet?
    main()
    {
        int a[5] = {1,4,5,6,9};
        printf("%d\t", *a);    //Line 1
        printf("%d", *++a);    //Line 2
    return 0;
    }

    A
    1 4

    B
    0 1

    C
    Undefined value

    D
    Compilation Error in "Line 1"

    E
    Compilation Error in "Line 2"

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