Question: Question 1 (6pts) Assume that you need a variable named big to represent an integer greater than 2,147,483,647 (i.. > 21-1). What type would you
Question 1 (6pts) Assume that you need a variable named big to represent an integer greater than 2,147,483,647 (i.. > 21-1). What type would you declare big? Recall that in Java, the type int is stored in 32 bits, so you can only store integer values within the range -2,147,483,648 to 2.147.483.647. Answer: Question 2 (8pts) Assume that the variables x, y and following equation in Java. 3xxy- have been properly declared Write the Answer: Question 3 (30pts) A- (15pts) For each of the following expressions, indicate their value and their type: Expression Type Value (int) 34.6 11 / (float) 2 8.0 + 312 B- (15pts) For each of the following statements, indicate: if there is a syntax error, OR . if there is no error, indicate the value of the variable a, after the statements are executed. Statements Syntax error Syntax error? if no error, value of a Float - double) 1012) double a: - 10/3 COMP 248 - EE F2011 Test 1 - A Page 2 of 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
