1. Question:  Which of the following special symbol allowed in a variable name?

    A
    * (asterisk)

    B
    | (pipeline)

    C
    - (hyphen)

    D
    _ (underscore)

    Note: Not available
    1. Report
  2. Question: Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();

    A
    Both are identical

    B
    No difference, except extern int fun(); is probably in another file

    C
    int fun(); is overrided with extern int fun();

    D
    None of these

    Note: Not available
    1. Report
  3. Question:  How would you round off a value from 1.66 to 2.0?

    A
    ceil(1.66)

    B
    floor(1.66)

    C
    roundup(1.66)

    D
    roundto(1.66)

    Note: Not available
    1. Report
  4. Question: By default a real number is treated as a

    A
    float

    B
    double

    C
    long double

    D
    far double

    Note: Not available
    1. Report
  5. Question: Which of the following is not user defined data type? 1.
    struct book
    {
        char name[10];
        float price;
        int pages;
    };
    2 :
    long int l = 2.35;
    3 :
    enum day {Sun, Mon, Tue, Wed};

    A
    1

    B
    2

    C
    3

    D
    Both 1 and 2

    Note: Not available
    1. Report
  6. Question: Is the following statement a declaration or definition? extern int i;

    A
    Declaration

    B
    Definition

    C
    Function

    D
    Error

    Note: Not available
    1. Report
  7. Question:  Identify which of the following are declarations 1 : extern int x; 2 : float square ( float x ) { ... } 3 : double pow(double, double);

    A
    1

    B
    2

    C
    1 and 3

    D
    3

    Note: Not available
    1. Report
  8. Question: In the following program where is the variable a getting defined and where it is getting declared? #include<stdio.h> int main() { extern int a; printf("%d\n", a); return 0; } int a=20

    A
    extern int a is declaration, int a = 20 is the definition

    B
    int a = 20 is declaration, extern int a is the definition

    C
    int a = 20 is definition, a is not defined

    D
    a is declared, a is not defined

    Note: Not available
    1. Report
  9. Question: When we mention the prototype of a function?

    A
    Defining

    B
    Declaring

    C
    Prototyping

    D
    Calling

    Note: Not available
    1. Report
  10. Question: Which two lines set up things so that the libraries with console input and output facilities are available to the c++ program?

    A
    #include <iostream> using namespace std;

    B
    #include <conio.h> using namespace std;

    C
    #include <stdio.h> using namespace std;

    D
    #include <iostream.h> using namespace std;

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