1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Question: What would be printed on the standard output as a result of the following code snippet?
    char i = 'A';
    char *j;
    j = & i;
    *j = *j + 32;
    printf("%c",i);

    A
    An error will occur

    B
    a

    C
    A

    D
    b

    E
    c

    Note: Not available
    1. Report
  10. Question: What will be printed on the standard output as a result of the following code snippet?
    void main()
    {
            char arr1[] = "REGALINT";
            printf("%d,",strlen(arr1));
            printf("%d",sizeof(arr1));
    }

    A
    1,1

    B
    8,4

    C
    8,8

    D
    8,9

    E
    9,8

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