MoreEX1Problems - button e. The program contains an error...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. What is the value of x after the evaluation of the operators in the following statement X = 1 + 2 * 3 – 4 / 4 – 12 \ 6 * 6 a. 12 b. -3 c. -9 d. -12 *e. 6 f. -12.0 2. What is the value of x after the evaluation of the operators in the following statement X = 8.2 Mod 3 + 2 / 2 - -3 *a. 6 b. -3 c. 0 d. 1 e. 4 f. 2.4 15. Observe the code and determine the results shown in lblDisplay if the user types in the following numbers: 3, 6, 1 *a. 1 b. 6 c. 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
d. lblDisplay holds whatever was placed in it prior to the user clicking the DoSomething
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: button e. The program contains an error that VB in the IDE will detect. _______ 3. [5] Identify any errors in the following code. 1 | Dim num As Double 2 | num = InputBox(“Pick a number from 1 to 10.”) 3 | txtOutput.Text = “Your number is ” & num 1) InputBox in line 2 requires a title string as the second literal string inside the parentheses 2) Output Text Box requires the property to be strings *3) Line 2 needs to convert string from InputBox to CDbl 4) No errors. 5) None of the above....
View Full Document

This note was uploaded on 10/19/2009 for the course ECE CS1040 taught by Professor Price during the Spring '09 term at Missouri (Mizzou).

Page1 / 2

MoreEX1Problems - button e. The program contains an error...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online