logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Which of the following is not a correct variable type?


  • Options
  • A. real
  • B. char
  • C. float
  • D. double

  • Correct Answer
  • real 

    Explanation

    A variable provides us with named storage that our programs can manipulate. Each variable in C++ has a specific type, which determines the size and layout of the variable's memory the range of values that can be stored within that memory and the set of operations that can be applied to the variable.

    The name of a variable can be composed of letters, digits, and the underscore character. It must begin with either a letter or an underscore. Upper and lowercase letters are distinct because C++ is case-sensitive ?

     

    Basic types of variables:


    1. bool

    Stores either value true or false.

    2. char

    Typically a single octet (one byte). This is an integer type.

    3. int

    The most natural size of an integer for the machine.

    4. float

    A single-precision floating point value.

    5. double

    A double-precision floating point value.

    6. void

    Represents the absence of type.

    7. wchar_t

    A wide character type.

  • Tags: AIEEE, Bank Exams, Analyst, Bank Clerk, Database Administrator, IT Trainer, Software Architect

    Technology problems


    Search Results


    • 1. Give an example for the use of volatile keyword in c++ ?
    • Discuss
    • 2. Which of the following type casts will convert an Integer variable named amount to a Double type ?

    • Options
    • A. (int to double) amount
    • B. int (amount) to double
    • C. int to double(amount)
    • D. (double) amount
    • Discuss
    • 3. Which design patterns benefit from the multiple inheritance?

    • Options
    • A. Adapter and observer pattern
    • B. Code pattern
    • C. Glue pattern
    • D. None of these
    • Discuss
    • 4. How many types of modularization are there in c++?

    • Options
    • A. 4
    • B. 3
    • C. 1
    • D. none of these
    • Discuss
    • 5. Which of the following is a properly defined structure?

    • Options
    • A. struct {int a;}
    • B. struct a_struct {int a;}
    • C. struct a_struct int a;
    • D. struct a_struct {int a;};
    • Discuss
    • 6. What are the tasks of a Business Analyst in Software Development Life Cycle?
    • Discuss
    • 7. Define what is a Fact, Dimension and Measure ?
    • Discuss
    • 8. What is the difference between ADODC and ADODB?
    • Discuss
    • 9. What is the diff between RDO and ADO?
    • Discuss
    • 10. What is PHP?s configuration file called ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment