subject

1. which of the following expressions evaluates multiplication first addition second and multiplication third
a. 2*3+4*5
b. (2*3)+(4*5)
c. 2*(3+4)*5
d. 2*(3+4*5)
2. after the following two statements, what is the value of j?
int i=10;
int j=10*i++;
a. 100
b. 101
c. 110
d. 111
3. consider the following code.
int x=1;
int y=2;
system. out. println ("the sum of x and y is" +x+y+".");
what would be the result of the last statement?
a. it would display the text, "the sum of x and y is 3."
b. it would display the text, "the sum of x and y is 12."
c. it would display a very large number, something similar to 442152118.
d. the statement would cause a compilation error.
(note: this is for java programming)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, willwhitlock803
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
image
Computers and Technology, 22.06.2019 07:00, candiceforever123
Idon understand these and need some ! ?
Answers: 2
image
Computers and Technology, 22.06.2019 10:30, ilovepickles930
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
You know the right answer?
1. which of the following expressions evaluates multiplication first addition second and multiplicat...

Questions in other subjects:

Konu
Social Studies, 05.01.2022 07:00