Visual Basic Lesson 4 Quiz 4

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

The ____ subtracts the value to the right of the operator from the value to the left of the operator. a. - b. + c. % d. /

a. -

The system of codes that the computer uses to represent characters is called the ____ code. a. ASCII b. Text c. Value d. Alphabet

a. ASCII

____ returns the remainder of integer division. a. Integer subtraction b. Modulus c. Division d. Integer division

b. Modulus

_______are the fields placed on dialog boxes and in other windows that allow the user to enter a value

Text Boxes

In Visual Basic, the symbol "=" is known as the _____.

Assignment operator

In Visual Basic, an asterisk (*) represents division.

False

Integer division is performed using the forward slash (/).

False

The symbol (#) at the beginning of a line of code allows you to enter text into the code that the compiler will ignore.

False

Using the Val function—which returns the integer part of a number with regular division— gives the same result as doing integer division.

False

The _________character tells the compiler to skip to the next line and treat the text there as if it were a part of the same line.

Line-Continuation

_________are symbols that perform specific operations in Visual Basic statements.

Operators

Text boxes accept data from the user. This data comes in the form of text.

True

The addition operator can be used as a unary plus.

True

The modulus operator (Mod) returns the remainder of integer division.

True

The text that appears on the label cannot be changed directly by the user.

True

Unlike other operators, Mod is not a single character.

True

Visual Basic allows you to use mathematical equations in your programs.

True

_____ is the process of dropping the fractional part of a number.

Truncation

You can use the subtraction operator as _____ to perform negation.

Unary Minus

The ______ function takes numbers that are in a text format and returns a numeric value that can be used in calculations.

Val

Values that are keyed directly into source code are called ____. a. operators b. literals c. symbols d. variables

b. literals

The ____ property of a label specifies what caption will appear on the label. a. SizeMode b. Text c. Caption d. Name

b. text

In Visual Basic, a(n) ____ represents multiplication. a. / b. % c. * d. &

c. *

The ____ changes the value of the item on the left of the assignment operator to the value to the right of the assignment operator. a. * b. <- c. = d. +

c. =

____ returns only the whole number portion of the division of integers. a. % b. * c. \ d. /

c. \

In computer programming, there are times when you want to work exclusively with whole numbers, called ____. a. decimals b. reals c. integers d. floats

c. integers

The label______ is used to place text on a form.

control

The ____ property of a text box specifies what text will appear alongside the text box. a. Position b. Left c. Top d. Text

d. text

In Visual Basic, the ____ function returns the truncated whole number.

fix

The term _____ refers to information that is entered directly into the source code and cannot change while the program runs.

hard-coded


Kaugnay na mga set ng pag-aaral

Chapter 4 Questions (end of chapter)

View Set

US History Chapter 15: Conquering a Continent, 1860-1890

View Set

USAHS Movement Science I - Components of Functional Tasks

View Set

Anatomy ii- Chapter 16 Lymphatic System

View Set

Chapter 4- Gravity and Orbits (COPY OF TEST)

View Set

Quiz 10: passive voice identify main subject and verb

View Set

Vocabulary Workshop Level E Unit 1 Answers

View Set

Cholera Case Study Questions and Answers

View Set

Ohlone College ESL placement test sample

View Set