Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 1 pts If str1 and str2 are both Strings, which of the following will correctly test to see if they are equal? ==

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question 3 1 pts If str1 and str2 are both Strings, which of the following will correctly test to see if they are equal? == 1. (str 1 str2) 2. str1.equals(str2) 3. (str1.compareTo(str2) == 0) 2 and 3 b 1, 2, and 3 will all work 1 and 3 1 and 2 a d O ons Od Question 4 28 What would be the value of discountRate after the following statements are executed? double discountRate; char custType = 'B; switch (custType) case 'A': discountRate=0.08; break: case 'B': discountRate=0.06; case 'C': discountRate=0.04; default: discountRate=0.0; a 0.04 b 0.08 c0.06 d 0.0 ob O Question 5 What is the result of the following statement? 17% 3 2 - 12 + 15 a 7 b 12 c 10.5 d 4.8 . oho a Question 6 Which of the following is a valid Java statement? a b String str = "John Doe": string str = "John Doe": string str = "John Doe": String str = 'John Doe': d Ob no O d

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

Students also viewed these Databases questions

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

=+j What rules will apply to the process of negotiations?

Answered: 1 week ago