Filters
Question type

You should ____ the pictureFrame.txt file as soon as you have finished using it.


A) Save
B) Read
C) Close
D) Peek

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following determines whether an item is selected in the lstTrees control? Which of the following determines whether an item is selected in the lstTrees control?

Correct Answer

verifed

verified

B

Write a Structure statement that defines a structure named Vehicle.The structure contains three member variables named strMake,strModel,and intYear.Then write the Private statement that declares a Vehicle variable named truck.

Correct Answer

verifed

verified

Write the statement that would remove the selected item from the lstFlowers control if an item is selected.

Correct Answer

verifed

verified

Assume that the variable amount contains the value 46.How many characters will be padded in the statement below? amount = amount.ToString.PadLeft(5)


A) two
B) three
C) four
D) five

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Getting data from a file is referred to as "reading from the file," and sending data to a file is referred to as "writing to the file."

A) True
B) False

Correct Answer

verifed

verified

In Visual Basic,you use a(n) ____ to write a stream of characters to a sequential access file.


A) CreateText method
B) StreamReader object
C) StreamWriter object
D) AppendText method

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

An application contains the Structure statement shown below: An application contains the Structure statement shown below:    Write a Dim statement that declares a Furniture variable named sofas.Then,write assignment statements that assign the value  Sectional  to the strStyle member,and assign the number 1895.99 to the decPrice member. Write a Dim statement that declares a Furniture variable named sofas.Then,write assignment statements that assign the value "Sectional" to the strStyle member,and assign the number 1895.99 to the decPrice member.

Correct Answer

verifed

verified

In the syntax for the PadLeft method,____ is an integer that represents the total number of characters you want the string to contain.


A) totalChars
B) character
C) variable
D) string

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

An application contains the Structure statement shown below: An application contains the Structure statement shown below:    Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array:   Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array: An application contains the Structure statement shown below:    Write a Dim statement that declares an eight-element one-dimensional array of SalonInfo variables.Name the array mySalonInfo.Write the code to store the following data in the array:

Correct Answer

verifed

verified

Describe two advantages to programmers of using structures and structure variables.

Correct Answer

verifed

verified

Programmers use structure variables when...

View Answer

Write the code to declare a variable named outFile that can be used to write data to a sequential access file.Then write the statement to open a sequential access file named customers.txt for output.

Correct Answer

verifed

verified

Write a Do clause that reads each line of text in a sequential access file and assigns the line to the strTextLine variable.Process the loop until the end of the file has been reached.The file is associated with a StreamReader variable named inFile.

Correct Answer

verifed

verified

When you pass a structure variable to a Sub or Function procedure,its member variables are not automatically passed.

A) True
B) False

Correct Answer

verifed

verified

False

After opening a file for input,you can use the ____ to read the file's contents,one line at a time.


A) ReadLine method
B) OpenText method
C) AppendText method
D) WriteLine method

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

Data types created using the Structure statement are referred to as user-defined data types or structures.

A) True
B) False

Correct Answer

verifed

verified

Programmers refer to a sequence of characters as a ____.


A) string of characters
B) stream of characters
C) file
D) variable

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

The syntax used to declare a StreamWriter variable is ____. The syntax used to declare a StreamWriter variable is ____.

Correct Answer

verifed

verified

C

To access a member of a structure variable in an array,you use the syntax ____. To access a member of a structure variable in an array,you use the syntax ____.

Correct Answer

verifed

verified

A(n) ____ is defined as a sequence (stream) of characters followed by the newline character.


A) character
B) line
C) input
D) stream

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Showing 1 - 20 of 58

Related Exams

Show Answer