Review Test Submission: Final Practice Exam ( Unlimited Attempts)
21SP Visual Bas:Win Prg (CIT-161-AC71)
Assignments
Final Practice Exam & Final Exam (Password Protected)
Review Test Submission: Final Practice Exam ( Unlimited Attempts)
User Achour Sahi
Course 21SP Visual Bas:Win Prg (CIT-161-AC71)
Test Final Practice Exam ( Unlimited Attempts)
Started 5/4/21 3:11 PM
Submitted 5/6/21 5:16 AM
Status Completed
Attempt Score 51 out of 60 points 
Time Elapsed 38 hours, 4 minutes
Results
Displayed
All Answers, Submitted Answers, Correct Answers, Feedback, Incorrectly
Answered Questions
Question 1
Selected Answer:
Answers:
Which of the following code segments writes the contents of three parallel
arrays named strStudentName, intID, and strMajorto a file in the
format below? Assume all arrays have the same number of elements.
Vince Student, 1234, Computer Science
Nancy Student, 4321, Electrical Engineering
Blackboard @ CCAC
1 out of 1 points
Achour Sahi 33
oard Help
Question 2
Selected Answer:
Answers:
When a file is selected from an Open dialog box, the path and file name are
stored in the control’s ________ property?
Filename
Filename
Item
PathName
File
Question 3
Selected Answer:
Answers:
A form’s ________ event is triggered when the user switches to the form from
another form or another application.
activated
got focus
form load
activated
Question 4
Selected Answer:
Answers:
Which of the following writes a blank line to a text file?
outputFile.WriteLine()
outputFile.WriteLine(Blank)
outputFile.Write(” “)
outputFile.WriteLine()
outputFile.WriteLine.Blank
1 out of 1 points
1 out of 1 points
1 out of 1 points
oard Help
Question 5
Selected Answer:
Answers:
A ________ file is like a stream of data that must be read from its beginning to
its end.
sequential access
binary format
direct format
direct access
sequential access
Question 6
Selected
Answer:
Answers:
All of the following are true of the Showmethod of a form except________.
the displayed form must be closed before you can access
other forms
the displayed form must be closed before you can access
other forms
theShowmethod displays a modeless form
using theShowmethod allows other forms to receive the
focus
theShowmethod allows a calling program to continue to
process statements
Question 7
Selected
Answer:
Answers:
Which of the following code segments will read the following two lines from
addressFileand place the data in two variables named strName, and
strCity?
Bob Johnson
Somewhere USA
Dim addressFile As System.IO.StreamReader
addressFile = System.OpenText(“address.txt”)
strName = addressFile.ReadLine()
strCity = addressFile.ReadLine()
addressFile.Close()
1 out of 1 points
1 out of 1 points
0 out of 1 points
oard Help
Dim addressFile As System.IO.StreamReader
addressFile =
System.IO.File.OpenText(“address.txt”)
strName = addressFile.ReadLine()
strCity = addressFile.ReadLine()
addressFile.Close()
Dim addressFile As System.IO.StreamReader
addressFile = System.OpenText(“address.txt”)
strName = addressFile.ReadLine()
strCity = addressFile.ReadLine()
addressFile.Close()
Dim addressFile As System.IO.StreamReader
addressFile =
System.IO.File.OpenText(“address.txt”)
strName = addressFile.Input()
strCity = addressFile.Input()
Close()
Dim addressFile As System.IO.StreamReader
addressFile = OpenText(“address.txt”)
strName = ReadLine(addressFile)
strCity = ReadLine(addressFile)
Close()
Question 8
Selected Answer:
Answers:
The StreamReaderobject’s ________ is used to determine when the end of the
file has been reached.
EndOfStream property
EOF flag
Poke method
FileEnd flag
EndOfStream property
Question 9
Selected Answer:
Answers:
When opening a file, use this method to determine whether a file exists before
you attempt to open it:
System.IO.File.Exists(filename)
System.IO.File.Exists(filename)
ExistFile(filename)
1 out of 1 points
1 out of 1 points
oard Help
System.File.Exists(filename)
IO.Exists(filename)
Question 10
Selected
Answer:
Answers:
To change the color of text in a windows form, you could use this.
both ColorDialogcontrol and FontDialogcontrol with the
ShowColorproperty set to True are correct
FontDialogcontrol
ColorDialogcontrol
FontDialogcontrol with theShowColorproperty set to True
bothColorDialogcontrol andFontDialogcontrol with
theShowColorproperty set to True are correct
Question 11
1 out of 1 points
1 out of 1 points
oard Help