1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
harkovskaia [24]
4 years ago
6

For each of the following Visual Basic code snippets, identify the syntax error.

Computers and Technology
1 answer:
Flauer [41]4 years ago
4 0

Answer:

1. No 'Then' in the if statement

2. No syntax error.

3. No closing if statement that is no "END IF"

4. No syntax error

5. No syntax error

Explanation:

1. The syntax for writing if statement in visual basic is:

If condition Then

'Stament block'

End If

From the above syntax, we see that the "Then" keyword is missing in the snippet.

2. This is okay as there is no syntax error.

str was declared as a string and a variable was assigned to it. Then, intLength was also declared as integer and the length of str is assigned to it.

3. The syntax for writing if statement in visual basic is:

If condition Then

'Stament block'

End If

From the above we can see that "End If" is missing in the given snippet.

4. There is no syntax error. The opening if and ending if are present.

5. There is no syntax error. The general form of writing a select case statement in Visual basic is:

Select Case VariableName

Case 1

"Statement to execute"

Case 2

"Statement to execute"

Case Else

"Default Statement to execute if other case fail"

End Select

You might be interested in
How to follow accounts on brainy
k0ka [10]

Answer: when u ask a quest or sum ask a quest or even an answer click on the person u want to follow then click invite

Explanation: thx for the points

4 0
3 years ago
Describe what a Bank Run is.
Musya8 [376]

Answer:

Explanation:

A bank run occurs when a large number of customers of a bank or other financial institution withdraw their deposits simultaneously over concerns of the bank's solvency. As more people withdraw their funds, the probability of default increases, prompting more people to withdraw their deposits.

8 0
3 years ago
Select the correct answer.
algol13
I believe the answer is D. in the military
hope this helps!
6 0
4 years ago
Read 2 more answers
How do I attach a file on the computer?
strojnjashka [21]
When you select 'ask your question' a box will appear and it will ask you to write your question. Underneath the text box you'll see a 'pi' sign and an 'omega' sign and next to that you'll see a paperclip sign. Click the paperclip sign and then choose the file/s you want to attach.

I have attached a docx (document) if you don't get what i mean.
Hope it helped :)
Download docx
4 0
3 years ago
Which of the following is the final fate for average sized stars?
schepotkina [342]
Black holes correct.......
7 0
3 years ago
Other questions:
  • How do rubrics increase learning?
    15·2 answers
  • Why wont my brainly account rank up even tho i have 1193 points and 5/5 brainly trophies but it still wont rank me up to vistro
    11·2 answers
  • While ________ is centered on creating procedures, ________ is centered on creating objects. Procedural programming, class progr
    10·1 answer
  • Ou are driving in stop-and-go traffic during the daytime, and someone in another vehicle tells you that your brake lights are no
    10·1 answer
  • Write a declaration for a class named City, which has the members cityName, a string, and position, a Location structure (declar
    10·1 answer
  • Việc áp dụng khai báo hải quan điện tử có áp dụng chữ ký số, đem lại những lợi ích gì
    10·1 answer
  • ICT Practical Work
    12·1 answer
  • An intruder with malicious intent breaks into an office and steals a hard drive containing sensitive information about the compa
    12·1 answer
  • An outpatient provides the following id: barbara jones, birth date 8/15/63. should a specimen be collected for this lab order?
    11·1 answer
  • A pcr-based method to detect a specific pathogen in a specimen works by amplifying a ________ that is specific to the prospected
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!