Results 1 to 3 of 3

Thread: possible mid-term question

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    37

    possible mid-term question

    1. What is displayed in the list box (lstOut) after this code fragment is executed?

    Dim a_intQty() As Integer = {9, 6, 4, 3, 5}

    For intCnt = 1 To 4 Step 2
    lstOut.Items.Add(a_intQty(intcnt))
    Next

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Looks like 6 and 3 to me. Why don't you run it though so you can verify it yourself?

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    37
    Hello anyone and everyone.......I have a midterm coming up and I am clueless as to what I am doing half the time, failing as it is...so I am asking if anyone would be willing to look at this review and give me some examples for the examples that are given? I am really trying to grasp this but getting some input from actual programmers might be a little more helpful. Thank you in advance!!!


    Nicky
    Attached Files Attached Files

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