Results 1 to 4 of 4

Thread: [RESOLVED] Written code

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2018
    Posts
    136

    Resolved [RESOLVED] Written code

    I'm taking a written test right now, so Im having to write out all the codes on paper. Not sure why it's so much easier for me to type it than write it!!?? I'm still learning..so please correct me if I'm wrong. Thanks in advance!!

    So I was told to consider the following snippet and write out the answers to these questions..My answers are in RED

    Code:
    Dim intx as Integer = 0
    Do
    intx += 1
    Loop until intx = 0
    1. What is code an example of? How would you change this code to make the loop end after 10 iterations?

    It's an example of Iterative Statement, a Do..Loop (until)

    Code:
    Dim intx as Integer = 0
    Do
    intx += 1
    Loop until intx = 10
    2.Write the code to populate and declare an array of five items.

    3. Create a two-button message box named Decision Time. Your message box should tell the user "It is time to make a choice." Provide buttons for OK and/or Cancel.

    Code:
    MessageBox.Show ("It is time to make a choice", "Decision Time",
    MessageBoxButtons.OKCancel)
    I'm working on number 2 now.
    Last edited by EmilyM1105; Mar 16th, 2018 at 05:32 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width