Question

Which follows the type of the literal constant: 9.5 ? A/ Char B/ Integer C/ Double...

Which follows the type of the literal constant: 9.5 ?

A/ Char

B/ Integer

C/ Double

D/ String

0 0
Add a comment Improve this question Transcribed image text
Answer #1


C) Double

It's a floating-point number. So, it's a Double.

Add a comment
Know the answer?
Add Answer to:
Which follows the type of the literal constant: 9.5 ? A/ Char B/ Integer C/ Double...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Name: True/False & Multiple Choice (2 points each) (True / False ) 2 A char literal...

    Name: True/False & Multiple Choice (2 points each) (True / False ) 2 A char literal '2', a string literal "2", and the numeric literal 2 are identical and stored the same way though they are different types. 3 Since comments do not affect the program execution, you don't need to have it at all. 4. After the following statements are executed, the value of the variable rem is 3. 1. A preprocessor directive line starts with a pound sign...

  • Part I. Representation of a String The primitive type char is used to store a single...

    Part I. Representation of a String The primitive type char is used to store a single character, whether it is a letter, number or special character (for example: space, tab, or new line). More often, we want to store a string of characters in a single variable. We can do this by using a variable of the class type String. A String variable can be initialized to a String literal (which is similar to how a char variable can be...

  • using c++ Write a C++ program which reads three values of types char, int, double and...

    using c++ Write a C++ program which reads three values of types char, int, double and string from the keyboard and primis, appropriately formatted, assigned values and variable types. For example, if letter, number, and real are variables of type char, int and double respectively, and if the values assigned to them using cin function are: a, 1, and 3.1415, then the output should be: a is a character 1 is an integen 3.1415 is a real number

  • A value that is written into the code of a program exactly as its meant to...

    A value that is written into the code of a program exactly as its meant to be interpreted is a: Question 15 options: A) literal B) constant C) data type D) variable In a dynamically-typed language, this line is valid: number = "One" Question 17 options: True False Select the appropriate data type for a variable to store whether or not are registered for a class, in a statically-typed language: Question 12 options: A) double B) integer C) string D)...

  • Which of the following statements regarding constant data is FALSE? A. A literal constant is an...

    Which of the following statements regarding constant data is FALSE? A. A literal constant is an unnamed constant used to specify data. • B. While variables have data types, constants do not. C. A defined constant uses a symbol to specify data. D. None of the above.

  • Consider the following methods’ headers: public static int one(int a, char b, double c, String d)...

    Consider the following methods’ headers: public static int one(int a, char b, double c, String d) public static double two(double x, double y) public static char three(int r, int s, char t, double u) Answer the following questions: Q1) What is the signature of method one? Answer: Q2) What is the return type of method two? Answer: Q3) What the formal parameters of method three? Answer: Q4) How many actual parameters are needed to call the method three? Answer: Q5)...

  • (Using Unions) Create union integer with members char c, short s, int i and long b

    This is from chapter 10 ex 10.8 in c how to program 6th ed deitelWrite a program that inputs the values of type char, short, int, and long and stores the values in union variables of type union integer. Each union variable should beprinted as a char, a short, an int and a long. D the values always print correctly?. Also create a flow chart or psuedocode of the program .

  • java script programming You must identify the data type of a variable before you use the...

    java script programming You must identify the data type of a variable before you use the variable in the program. The kind of state ment that identifies the data type of the a variable is called: (a) a variable definition (b) a variable assignment (c) a variable declaration (d) a variable initialization which of the following statements declares a variable called canine to have the data type String? (a) canine String “terrior”; (b) String terrior; (c) String = canine; (d)...

  • In "C" Language (Using Unions) Create union integer with members char c, short s, int i and long b. Write a program th...

    In "C" Language (Using Unions) Create union integer with members char c, short s, int i and long b. Write a program that inputs values of type char, short, int and long and stores the values in union variables of type union integer. Each union variable should be printed as a char, a short, an int and a long. Do the values always print correctly:? Sample input/output. To print in hexadecimal, use %x as the formatter. Input must be same...

  • S. Modułus operator can operate upon A. double B、 float C. char D. int E. C...

    S. Modułus operator can operate upon A. double B、 float C. char D. int E. C and D

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT