1. Question: If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?

    A
    .

    B
    &

    C
    *

    D
    ->

    Note: Not available
    1. Report
  2. Question: What would be the equivalent pointer expression for referring the array element a[i][j][k][l]

    A
    ((((a+i)+j)+k)+l)

    B
    *(*(*(*(a+i)+j)+k)+l)

    C
    (((a+i)+j)+k+l)

    D
    ((a+i)+j+k+l)

    Note: Not available
    1. Report
  3. Question: A pointer is

    A
    A keyword used to create variables

    B
    A variable that stores address of an instruction

    C
    A variable that stores address of other variable

    D
    All of the above

    Note: Not available
    1. Report
  4. Question: The operator used to get value at address stored in a pointer variable is

    A
    *

    B
    &

    C
    &&

    D
    ||

    Note: Not available
    1. Report
  5. Question: How will you free the allocated memory ?

    A
    remove(var-name);

    B
    free(var-name);

    C
    delete(var-name);

    D
    dalloc(var-name);

    Note: Not available
    1. Report
  6. Question: What is the similarity between a structure, union and enumeration?

    A
    All of them let you define new values

    B
    All of them let you define new data types

    C
    All of them let you define new pointers

    D
    All of them let you define new structures

    Note: Not available
    1. Report
  7. Question: In which numbering system can the binary number 1011011111000101 be easily converted to?

    A
    Decimal system

    B
    Hexadecimal system

    C
    Octal system

    D
    No need to convert

    Note: Not available
    1. Report
  8. Question: Which bitwise operator is suitable for turning off a particular bit in a number?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    ! operator

    Note: Not available
    1. Report
  9. Question: Which bitwise operator is suitable for turning on a particular bit in a number?

    A
    && operator

    B
    & operator

    C
    || operator

    D
    | operator

    Note: Not available
    1. Report
  10. 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
Copyright © 2024. Powered by Intellect Software Ltd