1. Question: Which bitwise operator is suitable for checking whether a particular bit is on or off?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    ! operator

    Note: Not available
    1. Report
  2. Question: Which header file should be included to use functions like malloc() and calloc()?

    A
    memory.h

    B
    stdlib.h

    C
    string.h

    D
    dos.h

    Note: Not available
    1. Report
  3. Question: What function should be used to free the memory allocated by calloc() ?

    A
    dealloc();

    B
    malloc(variable_name, 0)

    C
    free();

    D
    memalloc(variable_name, 0)

    Note: Not available
    1. Report
  4. Question: How will you free the memory allocated by the following program?
    #include<stdio.h>
    #include<stdlib.h>
    #define MAXROW 3
    #define MAXCOL 4
    
    int main()
    {
        int **p, i, j;
        p = (int **) malloc(MAXROW * sizeof(int*));
        return 0;
    }

    A
    memfree(int p);

    B
    dealloc(p);

    C
    malloc(p, 0);

    D
    free(p);

    Note: Not available
    1. Report
  5. Question: Specify the 2 library functions to dynamically allocate memory?

    A
    malloc() and memalloc()

    B
    alloc() and memalloc()

    C
    malloc() and calloc()

    D
    memalloc() and faralloc()

    Note: Not available
    1. Report
  6. Question: What will the function rewind() do?

    A
    Reposition the file pointer to a character reverse.

    B
    Reposition the file pointer stream to end of file.

    C
    Reposition the file pointer to begining of that line.

    D
    Reposition the file pointer to begining of file.

    Note: Not available
    1. Report
  7. Question: Input/output function prototypes and macros are defined in which header file?

    A
    conio.h

    B
    stdlib.h

    C
    stdio.h

    D
    dos.h

    Note: Not available
    1. Report
  8. Question: Which standard library function will you use to find the last occurance of a character in a string in C?

    A
    strnchar()

    B
    strchar()

    C
    strrchar()

    D
    strrchr()

    Note: Not available
    1. Report
  9. Question: What is stderr ?

    A
    standard error

    B
    standard error types

    C
    standard error streams

    D
    standard error definitions

    Note: Not available
    1. Report
  10. Question: Does there any function exist to convert the int or float to a string?

    A
    Yes

    B
    No

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