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

    A
    Will result in Compilation Error

    B
    0 1 2 3

    C
    0 1 0 1

    D
    0 1 0 2

    E
    Undefined

    Note: Not available
    1. Report
  2. Question: By which file function you can position the file pointer in accordance with the current position?

    A
    ftell()

    B
    fseek()

    C
    fgetc()

    D
    fread()

    E
    fscanf()

    Note: Not available
    1. Report
  3. Question: What is wrong with the following function prototype statement?
    int func();

    A
    The function definition {...} is missing

    B
    While calling a function, the type int is not needed

    C
    No parameter has been passed

    D
    The semicolon should not be there

    E
    There is nothing wrong with the statement

    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()
    {
            char arr[] = {'R','A','M'};
            printf("%d",strlen(arr));
    }

    A
    0

    B
    1

    C
    3

    D
    4

    E
    Cannot be determined

    Note: Not available
    1. Report
  5. Question: What will be printed on the standard output as a result of the following code snippet?
    void main()
    {
            int arr[][2] = {1,2,3,4,5,6};
            printf("%d",arr[2][1]);
    }

    A
    2

    B
    3

    C
    4

    D
    5

    E
    6

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

    A
    Undefined value

    B
    256

    C
    1

    D
    0

    E
    -1

    Note: Not available
    1. Report
  7. Question: Which of the following is not a storage type?

    A
    auto

    B
    global

    C
    static

    D
    register

    E
    extern

    Note: Not available
    1. Report
  8. Question: If a two dimensional array arr[4][10](an array with 4 rows and 10 columns) is to be passed in a function, which of the following would be the valid parameters in the function definition?

    A
    fn(int arr[4][10])

    B
    fn(int arr[][10])

    C
    fn(int arr[4][])

    D
    fn(int (*fn)[13])

    E
    None

    Note: Not available
    1. Report
  9. Question: Which function will you use to position the file pointer at the beginning of the file?

    A
    rewind()

    B
    fseek()

    C
    fscanf()

    D
    rewind() or fseek()

    E
    fseek() or fscanf()

    Note: Not available
    1. Report
  10. Question: Which of the following is not a string function?

    A
    strlen()

    B
    strcmp()

    C
    strcpy()

    D
    strcomp()

    E
    None

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