Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Chapter 3: Using Variables and Constants TRUE/FALSE 1)Computers can process data stored in a variable faster than data stored in a property of a control

Chapter 3: Using Variables and Constants TRUE/FALSE 1)Computers can process data stored in a variable faster than data stored in a property of a control

Computer Science

Chapter 3: Using Variables and Constants

TRUE/FALSE

1)Computers can process data stored in a variable faster than data stored in a property of a control.

 

2 Data types and classes are not related to each other.

 

3 Single and Double type variables can store numbers containing a decimal place.

 

            4.        Integer, Long, and Short type variables can store floating-point numbers.

 

 

            5.        Unicode is the universal coding scheme for characters.

 

           

 

            6.        Calculations involving Decimal variables are not subject to the small rounding errors that may occur when using Double or Single variables.

 

           

 

            7.        A Short type variable uses twice the amount of memory as an Integer variable.

 

 

            8.        The String type can store a maximum of two million characters.

 

 

 

            9.        Spaces are allowed in variable names.

 

 

 

            10.      All numeric variables are automatically initialized to zero if no initial value is specified when the variable is declared.

 

           

 

            11.      A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.

 

 

 

            12.      A literal constant is an item of data whose value does not change while the application is running.

 

           

 

            13.      The data type returned by the Val function is the Short data type.

 

 

 

            14.      A variable’s lifetime indicates how long the variable remains in the computer’s internal memory.

 

           

 

            15.      A variable declared in the Declaration section of a form is called a procedure-level variable.

 

 

            16.      A variable declared within a procedure cannot be seen by any other procedure.

 

           

            17.      A variable that has procedure scope is available to all procedures in the application.

 

 

            18.      A static variable is a procedure-level variable that remains in memory and also retains its value even when the procedure in which it is declared ends.

 

           

 

            19.      A named constant’s value cannot be changed while the application is running.

 

           

            20.      Named constants make programs more self-documenting and easier to modify.

 

           

            21.      You can eliminate the problems that occur as a result of implicit type conversions by entering the Option Explicit On statement in the General Declarations section of the Code Editor window.

 

 

            22.      When concatenating strings, you must be sure to include a space before and after the ampersand (&).

 

           

            23.      The value returned by the InputBox function depends on the button the user chooses.

 

           

            24.      A default button will be activated if the user presses the Enter key even if the button does not have the focus.

 

           

            25.      You cannot associate a procedure with more than one object or event.

 

 

MULTIPLE CHOICE

 

            1.        Instead of storing data in the properties of various controls, programmers can create ____, which are memory locations inside the computer, to store data.

a.

characters

c.

integers

b.

variables

d.

strings

 

 

           

 

            2.        A memory variable that is a Double data type requires ____ bytes of storage.

a.

2

c.

6

b.

4

d.

8

 

 

           

 

            3.        A memory variable that is a Decimal data type requires ____ bytes of storage.

a.

2

c.

8

b.

4

d.

16

 

 

           

 

            4.        Which of the following can store a number containing a decimal place?

a.

Single

c.

String

b.

Long

d.

Integer

 

 

           

 

            5.        A memory variable that is a Single data type requires ____ bytes of storage.

a.

2

c.

6

b.

4

d.

8

 

 

           

            6.        A variable name must begin with a letter or a(n) ____.

a.

ampersand (&)

c.

exclamation mark (!)

b.

percent sign (%)

d.

underscore (_)

 

 

           

            7.        Date variables are automatically set to which value when created?

a.

1/1/1980 12:00:00 AM

c.

1/1/0001 12:00:00 AM

b.

1/1/2000 12:00:00 AM

d.

1/1/0000 12:00:00 AM

 

 

           

 

            8.        Object and String variables are automatically initialized using the keyword ____.

a.

spaces

c.

the word "Nothing"

b.

Nothing (no data at all)

d.

zero

 

 

           

 

            9.        The assignment operator in Visual Basic is the ____ symbol.

a.

^

c.

>

b.

<

d.

=

 

 

           

 

            10.      Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type.

a.

Convert

c.

TryParse

b.

Format

d.

Number

 

 

           

            11.      The ____ of a variable determines where in the application’s code a variable can be used.

a.

dimension

c.

scope

b.

type

d.

extent

 

 

           

            12.      You declare a class-level variable using the ____ keyword.

a.

Dim

c.

Private

b.

Mod

d.

Static

 

 

           

            13.      You create a named constant using the ____ statement.

a.

Fixed

c.

ConstantFixed

b.

Const

d.

Perm

 

 

           

            14.      A variable that was not assigned a specific data type is assigned the ____ data type.

a.

Char

c.

Boolean

b.

String

d.

Object

 

 

           

            15.      You use the ____ operator to concatenate strings together.

a.

@

c.

&

b.

%

d.

#

 

 

           

            16.      When using the Visual Basic 2010 InputBox function, which of the following is the Windows standard?

a.

sentence capitalization for both prompt and title

b.

book title capitalization for the title and sentence capitalization for the prompt

c.

book title capitalization for both prompt and title

d.

Pascal case for both prompt and title

 

 

           

            17.      The ControlChars.NewLine constant instructs the computer to ____.

a.

advance the insertion point to the next line in a control

b.

exit the routine and restart

c.

restart from the beginning of the subroutine

d.

strip the remainder of the routine

 

 

           

            18.      The line continuation character is a(n) ____.

a.

ampersand (&)

c.

equal sign (=)

b.

underscore (_)

d.

pound sign (#)

 

 

           

            19.      When a button is selected, the computer processes the code contained in the button’s ____ event procedure.

a.

Submit

c.

On

b.

Press

d.

Click

 

 

           

            20.      A default button is identified by setting the form's ____ property.

a.

DefaultButton

c.

SelectedButton

b.

AcceptButton

d.

CancelButton

 

 

           

            21.      A form’s Cancel-Button property specifies the button whose Click event procedure is processed when the user presses the ____ key.

a.

Enter

c.

Tab

b.

Shift

d.

Esc

 

 

           

            22.      Specifying the number of decimal places and the special characters to display in a number is called ____.

a.

formatting

c.

shredding

b.

concatenating

d.

designing

 

 

           

            23.      To produce output of the number 125 as $125.00 you would use which of the following methods?

a.

CurrencyFormat

c.

ToString

b.

Format$

d.

FormatOutput

 

 

           

 

            24.      A control's ____ event occurs when a change is made to the contents of a control's Text property.

a.

CodeChanged

c.

ChangedText

b.

TextChanged

d.

TextModified

 

 

           

            25.      The ____ clause in an event procedure’s header indicates the object and event associated with the procedure.

a.

Private

c.

Local

b.

Handles

d.

Associate

 

 

           

Option 1

Low Cost Option
Download this past answer in few clicks

3.83 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE