Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 13 Not yet answered Marked out of 1.00 Not flaggedFlag question Question text what is the result of the following code. int i=7, x;

Question 13
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
what is the result of the following code.
int i=7, x;
x=Math.sqrt(i/2);
System.out.println(x);
3
Error
3.5
1.7
Question 14
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
The following block of code is used to calculate and display sum of following numbers 7,8,9.25.
int counter=0, sum=0;
while(counter
which of the following option is correct?
The output will be sum of 7 till 24, 25 will not include
The total will be 25
The final result will be correct
No Output
Question 15
Not yet answered
Marked out of 1.00
Not flaggedFlag question
Question text
Given following block of code
String str="ALAMAL";
int I=str.substring(1,3).indexOf("A");
what is the value of I?
2
0
1
3
image text in transcribed
image text in transcribed
Du 13 Not yet were Marked 500 Flag what is the result of the following code inti x-Math.sqrt(2) System.out printin 03 O Error 3,5 O 17 14 Not yet red Marked out of 5.00 The following block of code is used to calculate and display sum of folowing numbers 79.25. int counter, summo while counter Sunum.contec) System.out.printlnum which of the following option is correct? The output wit be sum of 70824 25 will not include The total will be 25 O The final result will the correct No Output Question 15 Not yet answered Marked out of 1.00 P Flag question Given following block of code String str="ALAMAL"; int i=str.substring(1,3).indexOf("A"); what is the value of I? O 2 O 0 1 O 3 Previous page Next page Announcements

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions