What is assigned to lblDisplay.Text when the following code executes?

```
Dim intNumber As Integer = 4
AddOne(intNumber, 6)
lblDisplay.Text = intNumber

' Code for AddOne
Public Sub AddOne(ByVal intFirst As Integer, ByVal intSecond As Integer)
intFirst += 1
intSecond += 1
End Sub
```

a. 4
b. 5
c. 6
d. 7


a. 4

Computer Science & Information Technology

You might also like to view...

Electronic ____________________ are typically installed on access points such as windows, doors, ceilings, and walls.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Select all that apply. Which of the following are regions where content can be displayed in the BorderPane layout container?

a. top and bottom b. center c. above and below center d. left and right

Computer Science & Information Technology

This is called a cast operation. When the preceding statement executes, it prints the value 65 (on systems that use the ASCII character set). Write a program that prints the integer equivalent of a character typed at the keyboard. Store the input in a variable of type char. Test your program several times using uppercase letters, lowercase letters, dig- its and special characters (like $).

Here is a peek ahead. In this chapter you learned about integers and the type int. C++ can also represent uppercase letters, lowercase letters and a consider- able variety of special symbols. C++ uses small integers internally to represent each different character. The set of characters a computer uses and the corresponding integer representations for those characters are called that computer’s character set. You can print a character by enclosing that char- acter in single quotes, as with cout << 'A'; // print an uppercase A You can print the integer equivalent of a character using static_cast as follows: cout << static_cast< int >( 'A' ); // print 'A' as an integer

Computer Science & Information Technology

If numPtr is declared as a pointer variable, the expression ____ can also be written as numPtr[i].

A. *numPtr + i B. (numPtr + i) C. *numPtr D. *(numPtr + i)

Computer Science & Information Technology