Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 11 Which of the following declares myValue as a whole number and initializes it to 2? int myValue 2; double myValue 2; char myValue

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question 11 Which of the following declares myValue as a whole number and initializes it to 2? int myValue 2; double myValue 2; char myValue '2; string myValue - "2" Question 12 hich of the following declares myValue as a real number and initializes it to 5.2? int myValue- 5.2 O double myValue 5.2; O char myValue '5.2; string myValue "5.2 Question 13 Which of the following declares myValue as a character and initializes it to 8? int myValue 8 double myValue-8; char myValue '8'; string myValue "8" Question 14 Which of the following declares myValue as a string and initializes it to 3.4? int myValue- 3.4; double myValue 3.4 O char myValue '3.4 string myValue "3.4"; Question 15 What is the value of variable num after the following code has executed? int num; num = 5; if (num > 4) num = 10; else num = 0; O 10 O 11 O 12 Question 16 1 pts What is the value of variable speed after the following code has executed? int input 65; string speed" if (input65) speed "Slow" else speed "Fast" SlowFast FastSlow O Fast Slow Question 17 What is the value of variable message after the following code has executed? double taxRate = 100; string message ""; if (taxRate> 99) message = "High"; if (taxRate 40) message"Medium" if (taxRate>30) "Low"; = message O High Medium Low None of the above Question 18 What is the value of variable message after the following code has executed? double score 0.6; string message if (score >= 0.6) message"Pass" else message "Fail"; = 0 Fail Pass O PassFail FailPass Question 19 What is the value of variable message after the following Visual Basic code has executed? double taxRate 0.8; string message = ""; if (taxRate >= 0.8) message = "High"; if (taxRate 0.7) message"Medium" if (taxRate = 1) { if (yAxis >= -5) { if (zAxis >=0) { num = xAxis * yAxis * zAxis; O 21 02 23 24

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

More Books

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

b. What groups were most represented? Why do you think this is so?

Answered: 1 week ago