Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Quiz 6   Question1)A control’s ____ event occurs when a change is made to the contents of a control’s Text property

Quiz 6   Question1)A control’s ____ event occurs when a change is made to the contents of a control’s Text property

Computer Science

Quiz 6

 

Question1)A control’s ____ event occurs when a change is made to the contents of a control’s Text property.

     
 

a. 

TextChanged

 

b. 

CodeChanged

 

c. 

ChangedText

 

d. 

TextModified

     
  • Question 2

 

   
 

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

     

a. 

SelectedButton

b. 

CancelButton

c. 

AcceptButton

d. 

DefaultButton

     
  • Question 3

 

   
 

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

     

a. 

Esc

b. 

Tab

c. 

Enter

d. 

Shift

     
  • Question 4

 

   
 

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

     
 

a. 

2

 

b. 

4

 

c. 

6

 

d. 

8

     
  • Question 5

 

   
 

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

     
 

 True

 

False

     
  • Question 6

 

   
 

An application translates English words into French words and displays the results as a message in a Label control. The strEnglish variable contains the string “apple”. The strFrench variable contains the string “pomme”. Write an assignment statement to display the string “The French word for apple is pomme.” in the lblMessage control.

     
 

 

lblMessage.Text = "The French word for " + strEnglish + 
" is " + strFrench + "."

     
  • Question 7

 

   
 

Case-Based Critical Thinking Questions

Case  - PetPals

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.

The data entered by the users is currently stored in properties of controls of the form. Your first task to improve the application is to ____.

     
 

a. 

add a colorful logo to the form

 

b. 

rename the controls

 

c. 

change the layout of the form

 

d. 

declare variables for all of the input data

     
  • Question 8

 

   
 

Case-Based Critical Thinking Questions

Case  - PetPals

You have been hired by PetPals Veterinary Clinic to modify an application. The application is used to enter and save all patient (pet) information obtained during an office visit.

The pet’s temperature is recorded at every visit, and it may contain a decimal place. What data type is best for storing this data?

     
 

a. 

Double

 

b. 

Decimal

 

c. 

Integer

 

d. 

String

     
  • Question 9

 

   
 

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

     
 

a. 

Number

 

b. 

Convert

 

c. 

TryParse

 

d. 

Format

     
  • Question 10

 

   
 

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

     
 

a. 

variables

 

b. 

strings

 

c. 

characters

 

d. 

integers

     

Quiz 7

  • Question 1

 

   
 

Spaces are allowed in variable names.

     
 

True

 

 False

     
  • Question 2

 

   
 

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

     
 

a. 

formatting

 

b. 

designing

 

c. 

concatenating

 

d. 

shredding

     
  • Question 3

 

   
 

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

     
 

a. 

extent

 

b. 

scope

 

c. 

dimension

 

d. 

type

     
  • Question 4

 

   
 

The assignment operator is the ____ symbol.

     
 

a. 

>

 

b. 

=

 

c. 

^

 

d. 

<

     
  • Question 5

 

   
 

The decBalance variable contains the number 368.52. Write the assignment statement to display the value with a dollar sign, a thousands separator, and two decimal places in the lblBalance control.

     
 
     
  • Question 6

 

   
 

The decRate variable contains the number .03. Write the assignment statement to display the value as 3% in the lblRate control.

     
       
  • Question 7

 

   
 

The strFirstName and strLastName variables contain the strings “Jane” and “Jones”, respectively. Which of the following statements will display a string as “Jones, Jane” (the last name, a comma, a space, and the first name) in the lblFullName control?

     
 

a. 

lblFullName.Text = strLastName  + ", " + strFirstName;

 

b. 

none of the above

 

c. 

lblFullName = strLastName + ", " + strFirstName

 

d. 

lblFullName.Text = strLastName + strFirstName;

     
  • Question 8

 

   
 

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

     
 

a. 

Click

 

b. 

Submit

 

c. 

On

 

d. 

Press

     
  • Question 9

 

   
 

Which of the following statements declares a double variable named dblAverage?

     
 

a. 

const dblAverage constant

 

b. 

double dblAverage;

 

c. 

dblAverage Double

 

d. 

double dblAverage

     
  • Question1 0

 

   
 

Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places?

     
 

a. 

lblPay.Text = dblPay.ToString("C2")

 

b. 

lblPay.Text = dblPay.ToString(C0)

 

c. 

lblPay.Text = dblPay.ToString("C0")

 

d. 

lblPay.Text = dblPay.ToCurrency("C0")

     
  • Question 11

 

   
 

Which of the following statements subtracts the contents of the intNum variable from the contents of the intNum2 variable, and then multiples the difference by 3? The result is assigned to the intResult variable.

     
 

a. 

intResult = (intNum2 - intNum) * 3

 

b. 

intNum - intNum2 * 3 = intResult

 

c. 

intResult = (intNum - intNum2) * 3

 

d. 

(intNum2 - intNum) * 3 = intResult

     
  • Question 12

 

   
 

You create a named constant using the ____ statement.

     
 

a. 

const

 

b. 

perm

 

c. 

fixed

 

d. 

constantFixed

     
  • Question 13

 

   
 

You use the ____ operator to concatenate strings together.

     
 

a. 

+

 

b. 

&

 

c. 

%

 

 

     

 

Option 1

Low Cost Option
Download this past answer in few clicks

2.83 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE