Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3948394
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:22:10+00:00 2026-05-20T01:22:10+00:00

two very silly questions below – they’ve just thrown me completely – please could

  • 0

two very silly questions below – they’ve just thrown me completely – please could you point me to which is correct and if you have time tell me why the others arent’. Thanks – you have no idea how much this will help me. I’m trying to teach myself VB and got this book of Amazon with questions but no answers and no where to find the answers.

1. Which of the following is a valid If…then…else statement?

a) pricelabel.text >0 andalso pricelabel.text<10

b) sales >500D orelse <800D

c) number >100 AndAlso number <=1000

d) state.ToUpper() = “Sydney” OrElse state.ToUpper = “Melbourne”

2. Assume you want to compare the string contained in the text property of firstNameTextbox with John, which of the following conditions should you use in the If…then…else statement? (Be sure the condition with handle John, JOHN, john, etc).

a) firstNameTextbox.text = toUpper (“JOHN”)

b) firstNameTextbox.text.toUpper() = “John”

c) firstNameTextbox.text.toUpper() = “JOHN”

d) toUpper(firstname.text) = “JOHN”

Thanks so much – I’m trying to teach myself and just keep getting stuck. Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:22:10+00:00Added an answer on May 20, 2026 at 1:22 am

    1a: is wrong because you are comparing strings to integers.
    1b: is wrong because you are not comparing 800D with anything.
    1d: is wrong because you will never get a match because you are converting everthing to upper case and comparing with a mixed case string.
    1c: is the answer.

    2a: will match upper case JOHN only.
    2b: will never match since since you are converting the text to uppercase and comparing with a mixed case string.
    2d: will match for uppercase JOHN only.
    2c: since it converts the text to uppercase and compares with an uppercase string is the answer since it will match all combinations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two questions: Can someone point me to unbiased data that compares .NET performance to
I suppose this is two very closely related questions: Everyone says to start with
Here are two very straightforward questions: Is Scheme machine-independent? What are the advantages and
SVN and CVS are two very different systems that aim to address the same
I need to be able to merge two (very simple) JavaScript objects at runtime.
Let's make this very easy. What I want: @array = qw/one two one/; my
Two Questions: Will I get different sequences of numbers for every seed I put
Duplicate : Function overloading by return type? Maybe this is a very silly question
Okay, this might be a very silly beginner question, but: I've got an ClassA,
Is it possible to diff or even vimdiff two very similar subroutines occurring in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.