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 anwered Marked out 500 Flog what is the result of the following code int in x=Math.sqrt(2) System.out.printin OS Error 3.5 O 12 De 14 Not yet Marked out 1.00 The following block of code is used to calculate and display sum of following numbers 720...25. int countersum while counter25) Susumecooter System.out.printlnum which of the following option is correct? The output wit be sum of 7 24 25 will not Include The total will be 25 O The final result will be 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? O2 o 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 to Expert-Tailored 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

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

Students also viewed these Databases questions