Question: 1. This is an example of declaring a variable and assigning it a value: char lowercaseA = 'a'; Name these 4 parts of the code:

1. This is an example of declaring a variable and assigning it a value:

char lowercaseA = 'a';

Name these 4 parts of the code:

1: char
2: lowercaseA
3: =
4: 'a'
    Choices - use a choice only once      
A.     statement
B.     data type
C.     variable name
D.     value
E.     assignment operator

    Match each of the following to a choice    
1.     char    
2.     lowercaseA    
3.     =    
4.     'a'

2. This code:

boolean isRaining;
isRaining = true;

does the same thing as this code:

boolean isRaining = true;

True or False?

3. Match the value to its corresponding data type.
    Choices - use a choice only once      
A.     '123'
B.     123.45
C.     "false"
D.     ' '
E.     -4
F.     true
   
Match each of the following to a choice    
1.     String    
2.     boolean    
3.     double    
4.     char    
5.     int    
       
4. What is the output of the following code:

double avgJulyTemperature = 88.2;
System.out.println("Avg temp in July is: " + avgJulyTemperature);
avgJulyTemperature = 86.5;
    A.     Avg temp in July is: 86.5
    B.     88.2
    C.     None of the other choices are correct.
    D.     86.5
    E.     Avg temp in July is: 88.2

5. x += 5  is the same as  x = 5 + x
True or False?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below Here ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!