Browse 20 million homework & study documents

search

Visual Basic Questions

Subject

Computer Science

School

Santa Monica College

Type

Homework

Rating

Showing Page:
1/2
Visual Basic Questions
1. What is the value of the intCount after the following code fragment end?
Dim intCount As Integer = 0
Do While intCount < 10
intCount += 1
Loop
Answer: 10
2. What must the test be so that the following fragment shows Message Boxes from 5
to 10?
Dim intCount As Integer
For intCount = [Select]
MessageBox.Show(intCount)
Next
Answer: 5 To 10
3. A posttest loop always executes the body of the loop at least once
Answer: True
4. Please complete the following code segment so that the message box will show only the
odd number
For intCount = 1 To 100 [Select]
MessageBox.Show(intCount.ToString())
Next
Answer: Step 2

Sign up to view the full document!

lock_open Sign Up
5. What is the output in the message box after the following code fragment end?
Dim x As Integer = 10
Do
x += 1
Loop Until x > 10
MessageBox.Show(x)
Answer: 11

Sign up to view the full document!

lock_open Sign Up

Unformatted Attachment Preview

Visual Basic Questions1. What is the value of the intCount after the following code fragment end?Dim intCount As Integer = 0Do While intCount < 10intCount += 1LoopAnswer:102. What must the test be so that the following fragment shows Message Boxes from 5to 10?Dim intCount As IntegerFor intCount = [Select]MessageBox.Show(intCount)NextAnswer:5 To 103. A posttest loop always executes the body of the loop at least onceAnswer:True4. Please complete the following code segment so that the message box will show only theodd numberFor intCount = 1 To 100 [Select]MessageBo ...
Purchase document to see full attachment

Anonymous
Excellent! Definitely coming back for more study materials.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4