Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 27th, 2011  |  syntax: None  |  size: 66.85 KB  |  views: 548  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 1
  2. The figure above represents the flowchart of a
  3. ____.
  4. A Do Until loop
  5. B Do While loop
  6. C For loop
  7. D Try...Catch...Finally loop
  8. 2
  9. Which of the following statements describes a
  10. run-time error?
  11. A When a statement is valid but it is impossible
  12. to execute for some reason
  13. B When there is an invalid statement, but for
  14. some reason VB .NET manages to run the
  15. solution correctly
  16. C When a statement violates the rules of the VB
  17. .NET language
  18. D When the solution contains a design problem
  19. causing the solution to produce incorrect results
  20. 3
  21. The figure above is an example of which of the
  22. following control structures?
  23. A Selection
  24. B Sequence
  25. C Interation
  26. D Block
  27. 4
  28. Which of the following control structures is
  29. represented in the figure above?
  30. A Select Case
  31. B Do ...While Loop
  32. C If...Then...Else
  33. D Do While...Loop
  34. Page 1 of 54
  35. Go on to next page
  36. 5
  37. Consider the following Visual Basic .NET code:
  38. Dim intUnitsReceived as Integer, sngTotalCost
  39. as Single, strCost as String
  40. sngTotalCost=0
  41. intUnitsReceived=0
  42. strCost = InputBox("Enter item cost (without $
  43. or comma), click Cancel when finished", "Data
  44. Entry")
  45. Do While strCost <> ""
  46. intUnitsReceived = intUnitsReceived + 1
  47. sngTotalCost = sngTotalCost + val(strCost)
  48. strCost = InputBox("Enter item cost (without $
  49. or comma), click Cancel when finished", "Data
  50. Entry")
  51. Loop
  52. The above code represents a _____ loop
  53. example.
  54. A PostTest
  55. B FirstTest
  56. C PreTest
  57. D None of these
  58. 6
  59. Which of the following control structures is
  60. represented in the figure above?
  61. A Select Case
  62. B Do While...Loop
  63. C Do...While Loop
  64. D If...Then...Else
  65. 7
  66. Which of the following control structures is
  67. represented in the figure above?
  68. A If...Then
  69. B If...Then...Else
  70. C If...Then...ElseIf...Else
  71. D Nested If...Then....Else
  72. 8
  73. Which of the following control structures is
  74. represented in the figure above?
  75. A For loop
  76. B If...Then...Else
  77. C Do While loop
  78. D Selection structure
  79. Page 2 of 54
  80. Go on to next page
  81. 9
  82. Consider the following Visual Basic .NET code:
  83. Dim unitsReceived as Integer, totalCost as
  84. Single, cost as String
  85. totalCost=0
  86. unitsReceived=0
  87. cost = InputBox("Enter item cost (without $ or
  88. comma), click Cancel when finished", "Data
  89. Entry")
  90. Do While cost <> ""
  91. unitsReceived = unitsReceived + 1
  92. totalCost = totalCost + val(cost)
  93. cost = InputBox("Enter item cost (without $
  94. or comma), click Cancel when finished",
  95. "Data Entry")
  96. Loop
  97. The above code represents a ____ loop example.
  98. A posttest
  99. B firsttest
  100. C pretest
  101. D secondarytest
  102. 10
  103. Consider the above code. What will the value of
  104. grade be if examScore is 99?
  105. A A
  106. B B
  107. C C
  108. D D
  109. 11
  110. Consider the above code. According to the
  111. Select Case statement, what is the number of
  112. days in February 2003?
  113. A 28
  114. B 29
  115. C 30
  116. D 31
  117. 12
  118. What can be said of the following function
  119. procedure?
  120. Private Function IsNegative(ByVal pintArg _
  121. As Integer) As Boolean
  122. If pintArg < 0 Then
  123. Return True
  124. Else
  125. Return False
  126. End If
  127. End Function
  128. A The function can be used only by the module
  129. containing the declaration
  130. B The function returns a value having a data
  131. type of Integer
  132. C The function has one argument having a data
  133. type of Boolean
  134. D All of the above
  135. 13
  136. Which is an example of an index?
  137. A 1
  138. B "Elaine"
  139. C strNames(1)
  140. D strNames
  141. Page 3 of 54
  142. Go on to next page
  143. 14
  144. Consider the above code. What will the value of
  145. grade be if examScore is 50?
  146. A A
  147. B B
  148. C D
  149. D F
  150. 15
  151. If a Case selection structure is to determine
  152. which school building to assign to a student
  153. based upon grade using the following table,
  154. which of the following expression lists is not
  155. correct in assigning students to the correct
  156. building?
  157. Grade Number School Building
  158. 1-6 Grade School
  159. 7-9 Middle School
  160. 10-12 High School
  161. A Case 1 to 6
  162. B Case is < 9
  163. C Case 10 to 12
  164. D Case Else
  165. 16
  166. In the array above, FEB is at subscript _____.
  167. A 0
  168. B 1
  169. C 2
  170. D 3
  171. 17
  172. Look at the following two loops. Which of the
  173. statements is true?
  174. Loop 1:
  175. intX = 0
  176. Do
  177. intX = intX * 2
  178. Loop While intX < 25
  179. Loop 2:
  180. intX = 0
  181. Do While intX < 25
  182. intX = intX * 2
  183. Loop
  184. A Loop 1 is identical in execution to Loop 2
  185. B Neither loop will compile
  186. C Loop 2 will always execute at least once
  187. D Loop 1 will always execute at least once
  188. 18
  189. If a Case selection structure is to determine
  190. which school building to assign to a student
  191. based upon grade using the following table,
  192. which of the following expression lists is not
  193. correct in assigning students to the correct
  194. building?
  195. Grade Number School Building
  196. 1-6 Grade School
  197. 7-9 Middle School
  198. 10-12 High School
  199. A Case 1, 2, 3, 4, 5, 6
  200. B Case is 7 to 9
  201. C Case 10 to 12
  202. D None of the above
  203. 19 A ____ is a hand-drawn sketch of how the
  204. application window or Web page will look and
  205. where the objects will be placed in the window
  206. or on the form.
  207. A A storyboard
  208. B A flowchart
  209. C focus sheet
  210. D control structure
  211. Page 4 of 54
  212. Go on to next page
  213. 20
  214. If a Case selection structure is to determine
  215. which school building to assign to a student
  216. based upon grade using the following table,
  217. which of the following expression lists is not
  218. correct in assigning students to the correct
  219. building?
  220. Grade Number School Building
  221. 1-6 Grade School
  222. 7-9 Middle School
  223. 10-12 High School
  224. A Case 6 to 1
  225. B Case is 7 to 9
  226. C Case 10 to 12
  227. D Case Else
  228. 21
  229. Consider the following code segment and
  230. determine the value of intNumber that displays
  231. in the Output window.
  232. Dim intCount, intNumber as integer
  233. intCount = 0
  234. intNumber = 0
  235. Do While intCount <=4
  236. intNumber = intNumber + 2
  237. intCount = intCount + 1
  238. Loop
  239. Me.lblAnswer.Text = intNumber
  240. A 2
  241. B 4
  242. C 6
  243. D 8
  244. 22
  245. Which of the following statements best
  246. describes the term encapsulation?
  247. A An object supports a fixed set of data items,
  248. each supporting properties, methods, and events.
  249. B An object supports implicit data type
  250. conversion.
  251. C An object supports properties and methods,
  252. but not events.
  253. D none of the above
  254. 23
  255. Consider the following code segment and
  256. determine the value of intNumber that displays
  257. in the Output window.
  258. Dim intCount, intNumber as integer
  259. intCount = 0
  260. intNumber = 0
  261. Do Until intCount > = 3
  262. intNumber = intNumber + 2
  263. intCount = intCount + 1
  264. Loop
  265. Me.txtAnswer.Text = intNumber
  266. A 2
  267. B 4
  268. C 6
  269. D 8
  270. 24
  271. Given the following statements:
  272. Dim intExperience As Integer = 10
  273. If intExperience > 5 Then
  274. Me.lblMessage.Text="Sufficient Experience"
  275. Else
  276. Me.lblMessage.Text="Inexperienced"
  277. End If
  278. What is displayed when the statements execute?
  279. A Sufficient Experience
  280. B Inexperienced
  281. C nothing would be displayed
  282. D Sufficient Experience on one line and
  283. Inexperienced on the next line
  284. 25
  285. When planning an application you need to
  286. _____.
  287. A identify the tasks the application needs to
  288. perform and the objects to which you will assign
  289. the tasks.
  290. B identify the events required to trigger an
  291. object into performing its assigned tasks.
  292. C design the user interface.
  293. D all of the above.
  294. Page 5 of 54
  295. Go on to next page
  296. 26
  297. Consider the following code segment and
  298. determine the value of intNumber that displays
  299. in the Output window.
  300. Dim intCount, intNumber as integer
  301. intCount = 0
  302. intNumber = 0
  303. Do
  304. intNumber = intNumber + 2
  305. intCount = intCount + 1
  306. Loop While intCount < 3
  307. Me.txtAnswer.Text = intNumber
  308. A 2
  309. B 4
  310. C 6
  311. D 8
  312. 27
  313. If a letter grade of "B" or "A" on a test is
  314. determined based upon the following grading
  315. scale which logical condition would identify an
  316. individual earning a "B" or "A" based upon a
  317. variable score?
  318. 90 - 100 A
  319. 80 - <90 B
  320. 70 - <80 C
  321. 60 - <70 D
  322. 0 - <60 F
  323. A Score = 80 or Score > 90
  324. B Score > 80 and Score >=90
  325. C Score >= 80
  326. D Score < 80 and Score >=80
  327. 28
  328. Which of the following describes a syntax error?
  329. A When a statement is valid but it is impossible
  330. to execute for some reason
  331. B When the solution contains a design problem
  332. causing the solution to produce incorrect results
  333. C When there is an invalid statement, but for
  334. some reason VB .NET manages to run the
  335. solution correctly
  336. D When a statement violates the rules of the VB
  337. .NET language
  338. 29
  339. Consider the following code segment and
  340. determine the value of intNumber that displays
  341. in the Output window.
  342. Dim intCount, intNumber as integer
  343. intCount = 0
  344. intNumber = 0
  345. Do
  346. intNumber = intNumber + 2
  347. intCount = intCount + 1
  348. Loop Until intCount > 3
  349. Me.txtAnswer.Text = intNumber
  350. A 2
  351. B 4
  352. C 6
  353. D 8
  354. 30
  355. If a letter grade of "D" or "F" on a test is
  356. determined based upon the following grading
  357. scale which logical condition would identify an
  358. individual earning a "D" or "F" based upon a
  359. variable score?
  360. 90 - 100 A
  361. 80 - <90 B
  362. 70 - <80 C
  363. 60 - <70 D
  364. 0 - <60 F
  365. A Score <=70 or Score > 0
  366. B Score >= 0 and Score < 70
  367. C Score Not >= 80
  368. D Score < 80 and Score >=80
  369. 31
  370. The four primary Visual Basic .NET Help
  371. windows are:
  372. A Contents, Floating windows, Dockable
  373. windows, Properties window
  374. B Index, Contents, Search, Dynamic Help
  375. C Dynamic help, What's new, Search online,
  376. Search offline
  377. D VB .NET offers only online help to the
  378. developers; other help options are available only
  379. to users with administrative privileges
  380. Page 6 of 54
  381. Go on to next page
  382. 32
  383. Given the following statements:
  384. If intGuess=intSelected Then
  385. Me.lblMessage.Text="Correct"
  386. Else
  387. Me.lblMessage.Text="Incorrect"
  388. End If
  389. What is displayed when intGuess is 8 and
  390. intSelected is 9?
  391. A Correct
  392. B Incorrect
  393. C nothing would be displayed
  394. D Correct on one line and Incorrect on the next
  395. line
  396. 33
  397. If a letter grade of "B" on a test is determined
  398. based upon the following grading scale, which
  399. of the following expressions would identify an
  400. individual earning a "B" based upon a variable
  401. score?
  402. 90 - 100 A
  403. 80 - <90 B
  404. 70 - <80 C
  405. 60 - <70 D
  406. 0 - <60 F
  407. A score = 80 Or score < 90
  408. B score > 80 And score <=90
  409. C score >= 80 And score < 90
  410. D score < 80 And score >=80
  411. 34
  412. Which of the following statements describes
  413. logic error?
  414. A When a statement violates the rules of the VB
  415. .NET language
  416. B When there is an invalid statement, but for
  417. some reason VB .NET manages to run the
  418. solution correctly
  419. C When a statement is valid but it is impossible
  420. to execute for some reason
  421. D When the solution contains a design problem
  422. causing the solution to produce incorrect results
  423. 35
  424. If a letter grade of "B" or "A" on a test is
  425. determined based upon the following grading
  426. scale, which expression would identify an
  427. individual earning a "B" or "A" based upon a
  428. variable score?
  429. 90 - 100 A
  430. 80 - <90 B
  431. 70 - <80 C
  432. 60 - <70 D
  433. 0 - <60 F
  434. A score = 80 Or score > 90
  435. B score > 80 And score >=90
  436. C score >= 80
  437. D score < 80 And score >=80
  438. 36
  439. Given the following statements:
  440. If intGuess=intSelected Then
  441. Me.lblMessage.Text="Correct"
  442. Else
  443. Me.lblMessage.Text="Incorrect"
  444. End If
  445. What is displayed when intGuess is 8 and
  446. intSelected is 9?
  447. A Correct
  448. B Incorrect
  449. C nothing would be displayed
  450. D Correct on one line and Incorrect on the next
  451. line
  452. 37
  453. If in a payroll application overtime is calculated
  454. after 40 work hours. Which of the following
  455. would be a correct selection statement to
  456. determine if overtime calculations were
  457. necessary assuming that the variable
  458. sngHoursWorked holds and employees hours
  459. worked?
  460. A If sngHoursWorked < 40 then
  461. B If sngHoursWorked = 40 then
  462. C If sngHoursWorked > 40 then
  463. D If sngHoursWorked < > 40 then
  464. Page 7 of 54
  465. Go on to next page
  466. 38
  467. If a letter grade of "B" on a test is determined
  468. based upon the following grading scale which
  469. logical condition would identify an individual
  470. earning a "B" based upon a variable score?
  471. 90 - 100 A
  472. 80 - <90 B
  473. 70 - <80 C
  474. 60 - <70 D
  475. 0 - <60 F
  476. A Score = 80 or Score < 90
  477. B Score > 80 and Score <=90
  478. C Score >= 80 and Score < 90
  479. D Score < 80 and Score >=80
  480. 39
  481. Which of the following represents the syntax for
  482. a Do While loop?
  483. A Do While expression
  484. statements
  485. End Do
  486. B Do While expression
  487. statements
  488. End While
  489. C Do While expression
  490. statements
  491. Loop
  492. D Do While expression
  493. statements
  494. Next
  495. 40
  496. What can be said of the following If statement:
  497. Dim strValue As String
  498. If 2 > 1 Then
  499. strValue = "Greater Than"
  500. Else
  501. strValue = "Less Than"
  502. End If
  503. A It is a one-way If statement
  504. B It is a two-way If statement
  505. C The statement will produce a syntax error
  506. D The statement uses a logical operator
  507. 41
  508. Which of the following is a post-test Do While
  509. loop structure?
  510. A Do
  511. statements
  512. Loop While expression
  513. B Do While expression
  514. statements
  515. Loop
  516. C Do statements
  517. While expression
  518. End Do
  519. D Do Until expression
  520. statements
  521. Next
  522. 42
  523. Which statement displays the following message
  524. box?
  525. A MessageBox.Show("Try again")
  526. B MessageBox.Display("Try again")
  527. C Show.Message("Try again")
  528. D Message.Show("Try again")
  529. 43
  530. Given the following statements:
  531. Dim intX As Integer = 0
  532. Do
  533. intX = intX + 2
  534. Loop While intX < 10
  535. How many times will the body of the
  536. Do…Loop execute?
  537. A 0
  538. B 2
  539. C 5
  540. D 10
  541. Page 8 of 54
  542. Go on to next page
  543. 44
  544. Given the following statements:
  545. Dim intX As Integer
  546. Do
  547. intX = intX + 3
  548. Loop While intX <> 30
  549. Which initial value of intX will make the loop
  550. infinite?
  551. A 0
  552. B 3
  553. C 7
  554. D 15
  555. 45
  556. Given the following statements:
  557. Dim intX As Integer
  558. For intX = 1 To 11
  559. MessageBox.Show(intX)
  560. Next intX
  561. What is the value of intX after the last loop
  562. iteration?
  563. A 1
  564. B 10
  565. C 11
  566. D 12
  567. 46
  568. Given the following statements:
  569. Dim intX As Integer
  570. For intX = 1 To 11
  571. MessageBox.Show(intX)
  572. Next intX
  573. How many message boxes will be displayed?
  574. A 1
  575. B 10
  576. C 11
  577. D 12
  578. 47
  579. Given the following For loop, what value is
  580. stored in the variable pintResult after the loop
  581. executes?
  582. Dim intCounter As Integer
  583. Dim intResult As Integer
  584. For intCounter = 0 to 11 Step 2
  585. intResult += 1
  586. Next
  587. A 6
  588. B 12
  589. C 11
  590. D None of the above
  591. 48
  592. Which of the following statements related to
  593. drawing graphical shapes on a form with the
  594. Graphics class is correct?
  595. A Calling the Repaint method of the Graphics
  596. class causes the form to be repainted.
  597. B To draw a shape, you call the DrawShape
  598. method of the Graphics class.
  599. C A reference to the Graphics class is passed as
  600. an argument to the Paint event handler. Thus,
  601. drawing operations are commonly performed in
  602. this event handler.
  603. D All of the above
  604. 49
  605. What value of x will print out after the
  606. following loop runs?
  607. intX = 0
  608. Do
  609. intX = intX + 1
  610. Loop While intX <= 5
  611. Me.lblPrint.Text = str(intX)
  612. A 0
  613. B 4
  614. C 5
  615. D 6
  616. Page 9 of 54
  617. Go on to next page
  618. 50
  619. Given the following statements:
  620. Dim sngNumber As Single = 78.9878
  621. Me.lblAnswer.Text = Math.Round(sngNumber,
  622. 2)
  623. What is displayed in the label?
  624. A 78
  625. B 78.98
  626. C 78.99
  627. D 79
  628. 51
  629. When designing a solution's menu system and
  630. menu items, the developer should:
  631. A Use a different prefix for every menu item to
  632. prevent confusion.
  633. B Not use consistent naming conventions
  634. because menu items are not referenced in the
  635. code.
  636. C Name every menu item with the same name
  637. as the control instances they reference.
  638. D Use a standard prefix and a descriptive name
  639. for each menu item.
  640. 52
  641. Given the following statements:
  642. Dim intX As Integer = 0
  643. Me.lblAnswer.Text = Math.Sign(intX)
  644. What is displayed in the label?
  645. A 0
  646. B -1
  647. C 1
  648. D intX
  649. 53
  650. Who is considered to be the author of COBOL?
  651. A Bill Gates
  652. B Government
  653. C Ada Byron
  654. D Grace Hopper
  655. 54
  656. How many events does the following procedure
  657. handle?
  658. Private Sub Condiments_Click(ByVal _
  659. sender As Object, ByVal e As _
  660. System.EventArgs) Handles _
  661. chkMustard.Click, chkKetchup.Click, _
  662. chkPickles.Click, chkOnions.Click
  663. A 1
  664. B 2
  665. C 4
  666. D 6
  667. 55
  668. Given the following statements:
  669. Dim strName As String = "6+7"
  670. Me.lblAnswer.Text = IsNumeric(strName)
  671. What is displayed in the label?
  672. A 0
  673. B No
  674. C True
  675. D False
  676. 56
  677. Given the following statements, what value is
  678. stored in the variable mblnResult, after the
  679. statements have executed?
  680. Private blnResult As Boolean
  681. Private strValue As String = "123,444.50"
  682. blnResult = IsNumeric(strValue)
  683. A False
  684. B True
  685. C 123444.50
  686. D None of the above
  687. 57
  688. The number system used in computers is called
  689. A decimal.
  690. B hexadecimal.
  691. C binary.
  692. D base.
  693. Page 10 of 54
  694. Go on to next page
  695. 58
  696. Given the following statements:
  697. Dim strFirstName(5) As String
  698. strFirstName(6) = "John"
  699. The strFirstName(6) = "John" statement
  700. A add a sixth element to the array.
  701. B add a seventh element to the array.
  702. C assigns "John" to all the elements in the array.
  703. D cause a run-time error.
  704. 59
  705. Given the following statements:
  706. Dim strFirstName(5) As String
  707. strFirstName(6) = "John"
  708. The strFirstName(6) = "John" statement
  709. A add a sixth element to the array.
  710. B add a seventh element to the array.
  711. C assigns "John" to all the elements in the array.
  712. D cause a run-time error.
  713. 60
  714. What is the result of the following statement?
  715. Private intCounter As Integer = "VB .NET"
  716. A The variable intCounter is assigned the text
  717. value appearing on the right side of the "=" sign
  718. B A syntax error
  719. C This statement contradicts the data type
  720. conversion rules of VB .NET
  721. D Both B and C
  722. 61
  723. If the programmer wants to protect the original
  724. variable data the programmer should pass the
  725. data by _____.
  726. A reference
  727. B value
  728. C both a & b will protect the data
  729. D None of these
  730. 62
  731. Which of the following statements is true of
  732. ComboBox styles?
  733. A You can configure the ComboBox so that it
  734. looks like a list box; that is, the ComboBox will
  735. not drop down
  736. B You can configure the ComboBox so that the
  737. user cannot add new items to the control
  738. instance at run time
  739. C You can control the number of items that will
  740. appear in the drop-down list
  741. D All of the above
  742. 63
  743. Which of the following statements apply to
  744. logical operators?
  745. A You should always use logical operators in
  746. place of arithmetic operators
  747. B Logical operators are commonly used in
  748. conjunction with arithmetic operators to build
  749. the condition in an If statement
  750. C Logical operators can never be used in the
  751. same statement as arithmetic operators
  752. D All of the above
  753. 64
  754. The ____ property determines whether a user
  755. can resize an application window at run time
  756. and how other objects on the form, such as the
  757. Maximize button, Minimize button, Control
  758. Box, Title bar, and Help button, behave or
  759. display.
  760. A ApplicationWindow
  761. B Display
  762. C ResizeWindow
  763. D FormBorderStyle
  764. 65
  765. When several programs require similar
  766. functionality, a(n) ____ approach to the solution
  767. should be considered in the design of the
  768. solution.
  769. A object-oriented
  770. B menu
  771. C procedural
  772. D subclass
  773. Page 11 of 54
  774. Go on to next page
  775. 66
  776. Which of the following is a characteristic of a
  777. Select Case statement?
  778. A A Select Case statement can always be used
  779. in place of a multi-way If statement
  780. B Select Case statements can only be used when
  781. the condition contains one or more Integer
  782. values
  783. C Avoid using Select Case statements as they
  784. run more slowly than If statements
  785. D None of the above
  786. 67
  787. Which of the following statements related to the
  788. GDI+ is correct?
  789. A The GDI+ supplies the methods to perform
  790. three-dimensional drawing.
  791. B The GDI+ allows you to draw twodimensional
  792. shapes, images, and text of varying
  793. fonts.
  794. C The versions of the GDI+ are the same for all
  795. Windows versions.
  796. D DirectX is a subset of the GDI+.
  797. 68
  798. The Checked property of the MenuItem class is
  799. used:
  800. A to define whether the menu item is enabled or
  801. disabled.
  802. B to define the check mark icon that appears in
  803. the menu item.
  804. C to define a menu item that displays a check
  805. mark.
  806. D The MenuItem class does not support a
  807. property named Checked.
  808. 69
  809. When Visual Basic .NET encounters a run-time
  810. error during execution, it displays a Microsoft
  811. Development Environment dialog box; to return
  812. to design time from this dialog box, click the
  813. ____ button.
  814. A Break
  815. B Design
  816. C Continue
  817. D Return
  818. 70
  819. Referring to a For loop, which of the following
  820. statements apply to the Step increment clause?
  821. A It is optional; if omitted the counter will be
  822. incremented by one
  823. B The increment must always be a positive
  824. value
  825. C The Step increment clause is required in any
  826. For loop. If omitted, then a syntax error will
  827. occur
  828. D None of the above
  829. 71
  830. Which of the following bests describes this
  831. loop?
  832. intX = 0
  833. Do While intX >= 0
  834. intX = intX + 3
  835. Loop
  836. A Infinite
  837. B Finite
  838. C Definite
  839. D Incite
  840. 72
  841. Given the following statements:
  842. Dim intX As Integer = 25
  843. Me.lblAnswer.Text = Math.Sqrt(intX)
  844. What is displayed in the label?
  845. A 0
  846. B 5
  847. C 25
  848. D 625
  849. 73
  850. Using the Immediate mode of the Command
  851. window during break mode, you can determine
  852. the value of a variable or expression in code by
  853. typing a(n) ____ followed by the expression or
  854. variable name.
  855. A plus sign
  856. B ampersand
  857. C exclamation point
  858. D question mark
  859. Page 12 of 54
  860. Go on to next page
  861. 74
  862. Given the following statements:
  863. Dim intX As Integer = –6
  864. Me.lblAnswer.Text = Math.Abs(intX)
  865. What is displayed in the label?
  866. A 0
  867. B -6
  868. C 6
  869. D 36
  870. 75
  871. Which of the following statements describe the
  872. correct scope of a variable?
  873. A Use local variables when the variable must be
  874. shared by at least two procedures
  875. B Use module-level variables when a variable is
  876. used only by a single procedure in a module
  877. C Use Static variables when a variable needs to
  878. be shared by all of the procedures in a form, and
  879. all of the forms in a solution
  880. D None of the above
  881. 76
  882. If 123.7894 is the number entered in a textbox,
  883. what will the following code display:
  884. Dim intNumber As Integer =
  885. Val(txtNumber.Text)
  886. lblAnswer.Text = Int(intNumber)
  887. A 123
  888. B 124
  889. C 123.7
  890. D 123.8
  891. 77
  892. The TextBox control Alignment property
  893. A sets the alignment of the text relative to the
  894. text box.
  895. B sets the alignment of the text relative to the
  896. form.
  897. C determines what text is displayed in the text
  898. box.
  899. D sets the alignment of the text box to match its
  900. corresponding label.
  901. 78
  902. Given the following statements:
  903. Dim strName As String = "687"
  904. Me.lblAnswer.Text = IsNumeric(strName)
  905. What is displayed in the label?
  906. A 0
  907. B No
  908. C True
  909. D False
  910. 79
  911. Given the following statements:
  912. Dim strName As String = "James"
  913. Me.lblAnswer.Text = IsNumeric(strName)
  914. What is displayed in the label?
  915. A James
  916. B No
  917. C True
  918. D False
  919. 80
  920. Which of the following statements is true of the
  921. selected item in a ListBox or ComboBox?
  922. A If the user has not selected an item, the
  923. SelectedIndex property has a value of 0
  924. B If the user has selected an item, the
  925. SelectedIndex property is greater than or equal
  926. to 0
  927. C The SelectedIndex property stores a textual
  928. value containing the data selected by the user
  929. D None of the above
  930. 81
  931. Which of the following correctly describes the
  932. syntax of an If statement?
  933. A For every If, there appears a matching End If
  934. unless the statement is a two-way If statement
  935. B On a line containing an If or ElseIf, the Then
  936. keyword always appears at the end of the line
  937. C A multi-way If statement can contain, at
  938. most, three ElseIf statements
  939. D All of the above
  940. Page 13 of 54
  941. Go on to next page
  942. 82
  943. Which of the following statements is true of For
  944. loops?
  945. A Only For loops that are incremented by 1 can
  946. be written as Do loops
  947. B Use a For loop when you know in advance
  948. how many times the loop will execute
  949. C The counter in a For loop is always
  950. incremented by 1
  951. D None of the above
  952. 83
  953. Why is the ByRef argument used within an
  954. event declaration?
  955. A To indicate that the argument is passed by
  956. value.
  957. B To indicate that there are no arguments in the
  958. argument list.
  959. C To indicate that the argument is passed by
  960. reference.
  961. D None of the above
  962. 84
  963. Which of the following statements applies to
  964. drawing a rectangle outline?
  965. A You call the DrawRectangle method of the
  966. Graphics class
  967. B The DrawRectangle method accepts a
  968. SolidBrush as one of its arguments
  969. C To call the DrawRectangle method, you must
  970. have previously created a Rectangle object
  971. D All of the above
  972. 85
  973. Which of the following statements apply to
  974. general procedures?
  975. A Function procedures are general procedures
  976. but sub procedures are not
  977. B An event handler is considered a general
  978. procedure
  979. C Both function procedures and sub procedures
  980. are considered general procedures
  981. D None of the above
  982. 86
  983. If 123.7894 is the number entered in a textbox,
  984. what will the following code display:
  985. Dim dblNumber As Double =
  986. Int(Val(txtNumber.Text))
  987. lblAnswer.Text = dblNumber
  988. A 123
  989. B 124
  990. C 123.7
  991. D 123.8
  992. 87
  993. Which statement displays Name in the title bar
  994. of an input box?
  995. A strName = InputBox("Name")
  996. B strName = InputBox("Enter your Name",
  997. "Name")
  998. C InputBox("Enter your Name", Name) =
  999. strName
  1000. D strName = InputBox("Name", "Enter your
  1001. Name")
  1002. 88
  1003. A call that passes a reference to an actual label
  1004. on the form looks similar to:
  1005. A Call CheckGuess(intNumber, intGuess)
  1006. B Call Me.lblAnswer.CheckGuess(intNumber,
  1007. intGuess)
  1008. C Me.lblAnswer = Call
  1009. CheckGuess(intNumber, intGuess)
  1010. D Call CheckGuess(Me.lblAnswer, intNumber,
  1011. intGuess)
  1012. 89
  1013. The MessageBox.Show(Text, Caption, Buttons,
  1014. Icons[, default button]) method displays a
  1015. message box at runtime on your form. Which of
  1016. the above arguments controls the words
  1017. appearing on the message box title bar?
  1018. A Text
  1019. B Caption
  1020. C Buttons
  1021. D Icons
  1022. Page 14 of 54
  1023. Go on to next page
  1024. 90
  1025. The MessageBox.Show(Text, Caption, Buttons,
  1026. Icons[, default button]) method displays a
  1027. message box at runtime on your form. Which of
  1028. the above arguments controls the words
  1029. appearing in the message box?
  1030. A Text
  1031. B Caption
  1032. C Buttons
  1033. D Icons
  1034. 91
  1035. The MessageBox.Show(Text, Caption, Buttons,
  1036. Icons[, default button]) method displays a
  1037. message box at runtime on your form. Which of
  1038. the above arguments controls the symbol
  1039. appearing in the message box?
  1040. A Text
  1041. B Caption
  1042. C Buttons
  1043. D Icons
  1044. 92
  1045. The ____ keyword tells Visual Basic .NET to
  1046. set aside memory for the instance of the object,
  1047. which includes memory for the object's
  1048. properties.
  1049. A Set
  1050. B New
  1051. C Mem
  1052. D Get
  1053. 93
  1054. ____________________ do not run from a
  1055. Form window as Windows Applications do.
  1056. Rather, their input and output appears in a
  1057. Command Prompt window.
  1058. A Windows Services
  1059. B Console Applications
  1060. C Console Control Libraries
  1061. D Desktop Applications
  1062. 94
  1063. When using the Visual Basic .NET InputBox
  1064. function which of the following is the
  1065. recommended standard?
  1066. A sentence capitalization for both prompt and
  1067. title
  1068. B book title capitalization for the title and
  1069. sentence capitalization for the prompt
  1070. C book title capitalization for both prompt and
  1071. title
  1072. D Pascal case for both
  1073. 95
  1074. Which of the following statements apply to the
  1075. items appearing in a ComboBox or ListBox?
  1076. A You can add items at design time by using the
  1077. String Collection Editor
  1078. B Items cannot be added at run time; instead,
  1079. they must be added at design time
  1080. C The maximum number of items that you can
  1081. store in a ListBox or ComboBox is 100
  1082. D All of the above
  1083. 96
  1084. An application that comes with Windows XP
  1085. and is used to view the contents of the hard disk
  1086. drive and of the computer’s removable storage
  1087. devices is called
  1088. A My Computer.
  1089. B the Desktop.
  1090. C My Details.
  1091. D System Tasks.
  1092. 97
  1093. Which law requires federal government
  1094. agencies to make certain agency information
  1095. available for public inspection.
  1096. A Fair Credit Reporting Act of 1970
  1097. B Privacy Act of 1974
  1098. C Electronic Freedom of Information Act of
  1099. 1996
  1100. D Financial Privacy Act of 1978
  1101. Page 15 of 54
  1102. Go on to next page
  1103. 98
  1104. Which law requires that a government authority
  1105. have a subpoena, summons, or search warrant to
  1106. access an individual’s financial records.
  1107. A Fair Credit Reporting Act of 1970
  1108. B Privacy Act of 1974
  1109. C Electronic Freedom of Information Act of
  1110. 1996
  1111. D Financial Privacy Act of 1978
  1112. 99
  1113. The programming process begins with a meeting
  1114. between the programmer and the client; which
  1115. of the following activities would be the third
  1116. activity in the programming process?
  1117. A Validate the design
  1118. B Design the solution
  1119. C Test the solution
  1120. D Document the solution
  1121. 100
  1122. ____ expresses the step-by-step instructions of
  1123. an algorithm using keywords, and depicts
  1124. logical groupings or structures using
  1125. indentation.
  1126. A A storyboard
  1127. B A flowchart
  1128. C Methods
  1129. D Pseudocode
  1130. 101
  1131. The programming process begins with a meeting
  1132. between the programmer and the client; which
  1133. of the following activities would be the fourth
  1134. activity in the programming process?
  1135. A Validate the design
  1136. B Design the solution
  1137. C Test the solution
  1138. D Implement the design
  1139. 102
  1140. A bit is
  1141. A a single 0 or 1 in the binary code.
  1142. B eight 0s or 1s.
  1143. C a person’s name stored in memory.
  1144. D equal to 64K of RAM.
  1145. 103
  1146. A ____ is a hand-drawn sketch of how the
  1147. application window or Web page will look and
  1148. where the objects will be placed in the window
  1149. or on the form.
  1150. A storyboard
  1151. B flowchart
  1152. C focus sheet
  1153. D control structure
  1154. 104
  1155. The programming process begins with a meeting
  1156. between the programmer and the client; which
  1157. of the following activities would be the fifth
  1158. activity in the programming process?
  1159. A Validate the design
  1160. B Design the solution
  1161. C Test the solution
  1162. D Implement the design
  1163. 105
  1164. The programming process begins with a meeting
  1165. between the programmer and the client; which
  1166. of the following activities would be the next or
  1167. second activity in the programming process?
  1168. A Validate the design
  1169. B Design the solution
  1170. C Test the solution
  1171. D Document the solution
  1172. 106
  1173. The ____ is part of the Visual Basic .NET
  1174. application and contains the windows and
  1175. toolbars that allow you to develop Visual Basic
  1176. .NET applications and components.
  1177. A resolution
  1178. B VBnet
  1179. C IDE
  1180. D index
  1181. 107
  1182. 00000000 01001101 represents the letter M in
  1183. A decimal.
  1184. B hexadecimal.
  1185. C kilobytes.
  1186. D binary.
  1187. Page 16 of 54
  1188. Go on to next page
  1189. 108
  1190. The ____ menu command on the toolbar
  1191. shortcut menu allows you to change the toolbars
  1192. to fit your own needs by adding, deleting, and
  1193. modifying toolbar buttons.
  1194. A Make Toolbar
  1195. B Control
  1196. C Design
  1197. D Customize
  1198. 109
  1199. How are logic errors and run-time errors
  1200. generally discovered?
  1201. A during unit testing in the implementation
  1202. phase of the development cycle
  1203. B during integration and other testing during the
  1204. test phase of the development cycle
  1205. C when users run the program
  1206. D all of the above
  1207. 110
  1208. The ____ menu command on the toolbar
  1209. shortcut menu allows you to change the toolbars
  1210. to fit your own needs by adding, deleting, and
  1211. modifying toolbar buttons.
  1212. A Make Toolbar
  1213. B Control
  1214. C Design
  1215. D Customize
  1216. 111
  1217. When you click the ____ command, Visual
  1218. Basic .NET enters step mode and then displays
  1219. the first executable statement highlighted in
  1220. yellow.
  1221. A Step To
  1222. B Step Out
  1223. C Step Into
  1224. D Step Next
  1225. 112
  1226. Which area of the Desktop contains a clock?
  1227. A the Icons
  1228. B the start menu
  1229. C the Quick Launch toolbar
  1230. D the notification area
  1231. 113
  1232. The Toolbox window ___________.
  1233. A displays the names of projects and files
  1234. included in a solution
  1235. B displays data connections and servers
  1236. C displays items that you can use when creating
  1237. a project
  1238. D displays the classes, methods, and properties
  1239. included in a solution
  1240. 114
  1241. A(n) ____ can be a control or form in the main
  1242. work area or any item selected in the Solution
  1243. Explorer window, including a solution, project,
  1244. or other file.
  1245. A method
  1246. B object
  1247. C click
  1248. D property
  1249. 115
  1250. To save a solution to a disk you can _________.
  1251. A click the Save button on the standard tool bar
  1252. B select the form name in the Solution
  1253. Explorer, then click save
  1254. C select the project name in the Solution
  1255. Explorer, then click save
  1256. D select the solution name in the Solution
  1257. Explorer, then click save
  1258. 116
  1259. The TextBox control Name property
  1260. A sets the alignment of the text relative to the
  1261. text box.
  1262. B sets the alignment of the text relative to the
  1263. form.
  1264. C determines what text is displayed in the text
  1265. box.
  1266. D identifies a control for the programmer.
  1267. 117
  1268. A file extension indicates
  1269. A what type of media the file is saved on.
  1270. B what application the file was created in.
  1271. C the file has been saved more than once.
  1272. D there is a problem with the file.
  1273. Page 17 of 54
  1274. Go on to next page
  1275. 118
  1276. The TextBox control Text property
  1277. A sets the alignment of the text relative to the
  1278. text box.
  1279. B sets the alignment of the text relative to the
  1280. form.
  1281. C determines what text is displayed in the text
  1282. box.
  1283. D identifies a control for the programmer.
  1284. 119
  1285. A given user interface must allow the user to
  1286. enter any number for a taxpayer’s income; an
  1287. input area with a ____ is best for this sort of
  1288. input.
  1289. A check box
  1290. B radio button
  1291. C drop-down menu
  1292. D text box
  1293. 120
  1294. In Text boxes, ____ are used around values to
  1295. tell Visual Basic .NET to treat their numeric
  1296. contents as characters, rather than as a numeric
  1297. value.
  1298. A quotes
  1299. B double quotes
  1300. C brackets
  1301. D question marks
  1302. 121
  1303. If the ____________________ property of a
  1304. form is set to True, scroll bars will automatically
  1305. appear if one or more control instances are
  1306. placed outside of the form’s client area.
  1307. A Scroll
  1308. B StartPosition
  1309. C FormScroll
  1310. D AutoScroll
  1311. 122
  1312. A copy of a diskette is called a
  1313. A backup.
  1314. B formatted diskette.
  1315. C copy diskette.
  1316. D virus.
  1317. 123
  1318. A ____ extends the functionality of a text box
  1319. by providing the ability to select an item from a
  1320. predetermined list of values, in addition to
  1321. typing a value.
  1322. A combo box
  1323. B list box
  1324. C check box
  1325. D radio button
  1326. 124
  1327. The Boolean ____________________ property
  1328. of a menu item is used to define a checked menu
  1329. item, which displays a check mark to the left of
  1330. the menu text.
  1331. A Checked
  1332. B Enabled
  1333. C Name
  1334. D Visible
  1335. 125
  1336. It is common to use multiple ____ on a GUI
  1337. form to capture combinations of related options
  1338. that each have a true or false (checked or not
  1339. checked) state.
  1340. A radio buttons
  1341. B check boxes
  1342. C text boxes
  1343. D list boxes
  1344. 126
  1345. A sentence like "A Double data type should be
  1346. always stored as a Double data type!" would be
  1347. best stored in which one of the following data
  1348. types?
  1349. A Integer
  1350. B Long Integer
  1351. C String
  1352. D Double
  1353. 127
  1354. What does the rectangle shape represent in a
  1355. flowchart?
  1356. A start/end
  1357. B input/output
  1358. C processing
  1359. D decision
  1360. Page 18 of 54
  1361. Go on to next page
  1362. 128
  1363. If intHours variable is dimensioned as an integer
  1364. using the statement 'Dim intHours as Integer',
  1365. then what is the initial value of this variable?
  1366. _____
  1367. A empty
  1368. B Nothing
  1369. C 0
  1370. D 1
  1371. 129
  1372. A nested logic structure that determines which
  1373. class (freshman, sophomore, junior, or senior) a
  1374. student is in would require how many If
  1375. statements using If/ElseIf/Else logic structures?
  1376. A 1
  1377. B 2
  1378. C 3
  1379. D 4
  1380. 130
  1381. If you assign a Double number, such as 3.2, to a
  1382. memory location that can store only integers,
  1383. then what will the value stored in the memory
  1384. location be? _____
  1385. A 4
  1386. B 3
  1387. C 3.0
  1388. D an error will be raised
  1389. 131
  1390. Which of the following is a valid syntax
  1391. variation for a Select Case statement?
  1392. A Comparison operators can appear in a Case
  1393. B You can use a comma separated list in a Case
  1394. to specify a list of values
  1395. C The To keyword can appear, allowing you to
  1396. specify a range of values
  1397. D All of the above
  1398. 132
  1399. Which is true about identifier names?
  1400. A an identifier must begin with a letter
  1401. B an identifier must contain a digit
  1402. C an identifier can contain spaces
  1403. D an identifier can be a keyword
  1404. 133
  1405. A sentence like "A Double data type should be
  1406. always stored as a Double data type!" would be
  1407. best stored in which one of the following data
  1408. types?
  1409. A Integer
  1410. B Long Integer
  1411. C String
  1412. D Double
  1413. 134
  1414. When both the upper and lower bounds are
  1415. known for a range when constructing a Case
  1416. expression, it is best to use the _____ keyword
  1417. in identifying the range.
  1418. A From
  1419. B Is
  1420. C To
  1421. D none of these
  1422. 135
  1423. If we wish to use a logical condition to
  1424. determine if the AccountBalance is not more
  1425. than CreditLimit which of the following is
  1426. correct?
  1427. A AccountBalance = CreditLimit
  1428. B AccountBalance >= CreditLimit
  1429. C AccountBalance <= CreditLimit
  1430. D AccountBalance <> CreditLimit
  1431. 136
  1432. When only one bound is known for a range
  1433. when constructing a Case expression, it is best
  1434. to use the _____ keyword in identifying the
  1435. range.
  1436. A From
  1437. B Is
  1438. C To
  1439. D none of these
  1440. 137
  1441. Which character begins a comment?
  1442. A a colon (:)
  1443. B a double quotation mark (")
  1444. C a single quotation mark (')
  1445. D a question mark (?)
  1446. Page 19 of 54
  1447. Go on to next page
  1448. 138
  1449. A meat packer grades meat "P" for Prime, "C"
  1450. for Choice, "S" for Standard, and "G" for Good.
  1451. Which of the following Case expressions is
  1452. incorrect?
  1453. A Case "P", "C"
  1454. B Case "S"
  1455. C Case "CGSP"
  1456. D Case Else
  1457. 139
  1458. A nested logic structure that determines which
  1459. class (freshman, sophomore, junior, or senior) a
  1460. student is in would require how many End If
  1461. statements using If/ElseIf/Else logic structures?
  1462. A 1
  1463. B 2
  1464. C 3
  1465. D 4
  1466. 140
  1467. A meat packer grades meat "P" for Prime, "C"
  1468. for Choice, "S" for Standard, and "G" for Good.
  1469. Which of the following case expressions is
  1470. incorrect?
  1471. A Case "P", "C"
  1472. B Case "S"
  1473. C Case "G"
  1474. D All of these are correct
  1475. 141
  1476. A nested logic structure that determines which
  1477. class (freshman, sophomore, junior, or senior) a
  1478. student is in would require how many If
  1479. statements using If/ElseIf/Else logic structures?
  1480. A 1
  1481. B 2
  1482. C 3
  1483. D 4
  1484. 142
  1485. A run-time error is also called a(n) ____.
  1486. A logic error
  1487. B syntax error
  1488. C exception
  1489. D configuration
  1490. 143
  1491. A nested logic structure that determines which
  1492. class (freshman, sophomore, junior, or senior) a
  1493. student is in would require how many If
  1494. statements using If/Else logic structures?
  1495. A 1
  1496. B 2
  1497. C 3
  1498. D 4
  1499. 144
  1500. The Boolean ____________________ property
  1501. of a menu item is used to define a checked menu
  1502. item, that displays a check mark to the left of the
  1503. menu text.
  1504. A Checked
  1505. B Enabled
  1506. C Name
  1507. D Visible
  1508. 145
  1509. A nested logic structure that determines which
  1510. class (freshman, sophomore, junior, or senior) a
  1511. student is in would require how many End If
  1512. statements using If/Else logic structures?
  1513. A 1
  1514. B 2
  1515. C 3
  1516. D 4
  1517. 146
  1518. Which of the following statement applies to
  1519. drawing lines?
  1520. A Lines must always be horizontal
  1521. B Lines must always be vertical
  1522. C You can draw a line between any staring
  1523. point and end point
  1524. D The DrawLine method can be used to draw a
  1525. curved line
  1526. 147
  1527. Which is not a property of the Label control?
  1528. A Name
  1529. B Text
  1530. C Font
  1531. D Style
  1532. Page 20 of 54
  1533. Go on to next page
  1534. 148
  1535. At the heart of all drawing operations is the
  1536. _______ class. It supplies the methods to draw
  1537. shapes to an output device, such as a window or
  1538. printer.
  1539. A Drawing
  1540. B GDI
  1541. C Display
  1542. D Graphics
  1543. 149
  1544. At the heart of all drawing operations is the
  1545. _______ class. It supplies the methods to draw
  1546. shapes to an output device, such as a window or
  1547. printer.
  1548. A Drawing
  1549. B GDI
  1550. C Display
  1551. D Graphics
  1552. 150
  1553. Which PictureBox control SizeMode property is
  1554. set if the size of the picture is as designed, but
  1555. there is a blank area to the right and below the
  1556. picture?
  1557. A AutoSize
  1558. B CenterImage
  1559. C Normal
  1560. D StretchImage
  1561. 151
  1562. Which statement is included in the beginning of
  1563. an event procedure to initialize the Rnd()
  1564. function so that different random numbers are
  1565. generated from run to run?
  1566. A Initialize()
  1567. B Random()
  1568. C Randomize()
  1569. D RndInt()
  1570. 152
  1571. Which object allows users to enter values?
  1572. A a Label object
  1573. B a Button object
  1574. C a TextBox object
  1575. D a MainMenu object
  1576. 153
  1577. If the property value for the SizeMode property
  1578. of the PictureBox control is ____, then an image
  1579. in the control will retain its original size as the
  1580. user resizes the form.
  1581. A CenterImage
  1582. B AutoSize
  1583. C StretchImage
  1584. D Normal
  1585. 154
  1586. How many parameters are declared in the
  1587. statement
  1588. Sub CheckGuess(ByVal intFirst As Integer,
  1589. ByVal intGuess As Integer)?
  1590. A 1
  1591. B 2
  1592. C 3
  1593. D 4
  1594. 155
  1595. If the property value for the SizeMode property
  1596. of the PictureBox control is ____, then an image
  1597. in the control will resize along with the control
  1598. when the form resizes.
  1599. A StretchImage
  1600. B AutoSize
  1601. C CenterImage
  1602. D Normal
  1603. 156
  1604. When arguments are passed by reference, the
  1605. ____ keyword is used before the argument name
  1606. in the declaration to denote that the value is
  1607. passed by reference.
  1608. A ByVal
  1609. B ByRef
  1610. C Reference
  1611. D PassBy
  1612. 157
  1613. The ____ property of a control reflects its name.
  1614. A Name
  1615. B What
  1616. C Identity
  1617. D Title
  1618. Page 21 of 54
  1619. Go on to next page
  1620. 158
  1621. What happens when an argument is passed by
  1622. value?
  1623. A VB .NET passes the memory address of the
  1624. variable to the procedure
  1625. B VB .NET passes an object to the procedure
  1626. C VB .NET makes a copy of the variable and
  1627. passes this copy to the procedure
  1628. D None of the above
  1629. 159
  1630. Which of the following statements apply to both
  1631. function and sub procedures?
  1632. A Both accept 0 or more arguments
  1633. B The Public and Private keywords describe the
  1634. scope of the procedure
  1635. C Arguments can be passed by value or by
  1636. reference
  1637. D All of the above
  1638. 160
  1639. If using Option Strict in a class module, what
  1640. can be said of the As type clause as it appears in
  1641. the argument list?
  1642. A It is optional.
  1643. B It is required.
  1644. C It changes the way Option Strict handles data
  1645. type conversions.
  1646. D none of the above
  1647. 161
  1648. Dim strCities(3) As String
  1649. How many elements are in the array declaration
  1650. above? _____
  1651. A 2
  1652. B 3
  1653. C 4
  1654. D 5
  1655. 162
  1656. Which is not a property of the Label control?
  1657. A Name
  1658. B Text
  1659. C Font
  1660. D Style
  1661. 163
  1662. Which of the following statements apply to
  1663. function procedures?
  1664. A You use the Public and Private keywords to
  1665. define the scope of a function procedure
  1666. B Function procedures have a data type
  1667. C You use the Return statement to return a
  1668. value from a function procedure
  1669. D All of the above
  1670. 164
  1671. In the ComboBox DropDownStyle property, the
  1672. ____ value allows you to click an item in the
  1673. drop-down list; typing an item directly in the
  1674. ComboBox text box is disallowed.
  1675. A Simple
  1676. B DropDownList
  1677. C DropDown
  1678. D all of the above
  1679. 165
  1680. Which of the following statements is true of
  1681. function arguments?
  1682. A A function procedure must always have at
  1683. least one argument
  1684. B Each function argument must have a data
  1685. type of Object
  1686. C If a function has multiple arguments, then
  1687. each argument is separated by a comma
  1688. D None of the above
  1689. 166
  1690. If the programmer wants to grant access to the
  1691. original variable data the programmer should
  1692. pass the data by _____.
  1693. A reference
  1694. B value
  1695. C both a & b will protect the data
  1696. D None of these
  1697. 167
  1698. Which button is the Autohide button in Visual
  1699. Studio?
  1700. A
  1701. B
  1702. C
  1703. D
  1704. Page 22 of 54
  1705. Go on to next page
  1706. 168
  1707. All of the Visual Studio .NET languages are
  1708. formally considered ____________________
  1709. languages.
  1710. A condition-oriented
  1711. B organization-oriented
  1712. C object-oriented
  1713. D None of the above
  1714. 169
  1715. Which law restricts the way in which personal
  1716. data can be used by federal agencies.
  1717. A Fair Credit Reporting Act of 1970
  1718. B Privacy Act of 1974
  1719. C Electronic Freedom of Information Act of
  1720. 1996
  1721. D Financial Privacy Act of 1978
  1722. 170
  1723. Both the programmer and the user must ____
  1724. the program design to make sure that it meets
  1725. the requirements.
  1726. A analyze
  1727. B validate
  1728. C implement
  1729. D all of the above
  1730. 171
  1731. A program that is designed to reproduce itself
  1732. by copying itself into other programs without
  1733. the user’s knowledge is called
  1734. A a bug.
  1735. B a virus.
  1736. C a reproduction.
  1737. D an infection.
  1738. 172
  1739. ____ present a requirements document to
  1740. programmers when they believe a particular
  1741. problem can be solved by a program.
  1742. A Supervisors
  1743. B Managers
  1744. C Users
  1745. D all of the above
  1746. 173
  1747. ____________________ define the members
  1748. (methods, properties, etc.) that other classes that
  1749. implement them must support.
  1750. A Interfaces
  1751. B Enumerations
  1752. C Structures
  1753. D Methods
  1754. 174
  1755. The phrases written in a sentence structure that
  1756. represent the steps a program must take to solve
  1757. a particular problem are called _____.
  1758. A a flowchart
  1759. B pseudocode
  1760. C an algorithm
  1761. D a storyboard
  1762. 175
  1763. The ____________________ project type is a
  1764. desktop application run directly by the end user
  1765. via forms appearing on the desktop.
  1766. A Windows Application
  1767. B Forms Application
  1768. C Common Application
  1769. D User Application
  1770. 176
  1771. Which law gives individuals the right to see
  1772. information maintained about them.
  1773. A Fair Credit Reporting Act of 1970
  1774. B Privacy Act of 1974
  1775. C Electronic Freedom of Information Act of
  1776. 1996
  1777. D Financial Privacy Act of 1978
  1778. 177
  1779. Select the property that is used to give the text
  1780. box a meaningful name that begins with “txt.”
  1781. _____.
  1782. A Font
  1783. B Text
  1784. C Name
  1785. D ContextMenu
  1786. Page 23 of 54
  1787. Go on to next page
  1788. 178
  1789. A boolean variable should have a descriptive
  1790. variable name with the first three characters
  1791. starting with _____.
  1792. A lgl
  1793. B bln
  1794. C byt
  1795. D log
  1796. 179
  1797. In Visual Basic .NET, a profile is used to store
  1798. personalized settings that define the ____.
  1799. A keyboard shortcuts that apply
  1800. B default filter to use when searching for help
  1801. C layout of windows in the Visual Basic .NET
  1802. IDE
  1803. D any of the above
  1804. 180
  1805. Which is a difference in the way a form looks
  1806. between the Design window and run time?
  1807. A The form no longer displays a grid.
  1808. B The form changes color.
  1809. C The form gets much larger.
  1810. D The form displays each object’s Name
  1811. property.
  1812. 181
  1813. Which is a difference in the way a form looks
  1814. between the Design window and run time?
  1815. A The form no longer displays a grid.
  1816. B The form changes color.
  1817. C The form gets much larger.
  1818. D The form displays each object’s Name
  1819. property.
  1820. 182
  1821. When you are programming, the main work area
  1822. of the Visual Basic .NET IDE displays the ____
  1823. window.
  1824. A menu
  1825. B code
  1826. C programming
  1827. D Properties
  1828. 183
  1829. Which window displays the application
  1830. interface and allows objects to be added,
  1831. deleted, and sized?
  1832. A the Start window
  1833. B the Design window
  1834. C the Code window
  1835. D the application window
  1836. 184
  1837. When the IDE is in ____ time, you can make
  1838. modifications to the forms and code of any
  1839. application or component.
  1840. A run
  1841. B design
  1842. C modification
  1843. D change
  1844. 185
  1845. A Char variable should have a descriptive
  1846. variable name with the first three characters
  1847. starting with _____.
  1848. A chr
  1849. B car
  1850. C cha
  1851. D none of these
  1852. 186
  1853. The ____ setting tells Visual Basic .NET what
  1854. tab or page to display in the main work area
  1855. when you start Visual Basic .NET.
  1856. A Start Page
  1857. B Home Page
  1858. C At Startup
  1859. D Work Page
  1860. 187
  1861. In the VB .NET programming language, there
  1862. are several kinds of programming errors that can
  1863. occur. They are:
  1864. A Typos, Case Sensitive, Accidental
  1865. B Syntax, Logical, Run-Time
  1866. C Running, Debugging, Controlling
  1867. D None of the above
  1868. Page 24 of 54
  1869. Go on to next page
  1870. 188
  1871. You can type a topic in the ____ box to display
  1872. a list of items related to that topic in the Index
  1873. window in the Visual Basic .NET Help system.
  1874. A Index Topic
  1875. B Look for
  1876. C Search
  1877. D Display
  1878. 189
  1879. The Dynamic Help window __________.
  1880. A displays the names of projects and files
  1881. included in a solution
  1882. B displays data connections and servers
  1883. C displays the classes, methods, and properties
  1884. included in a solution
  1885. D displays links to context-sensitive help
  1886. 190
  1887. The ____ property determines the order in
  1888. which Visual Basic .NET sets the focus on
  1889. controls when a user presses the TAB key.
  1890. A TabIndex
  1891. B TabOrder
  1892. C TabFocus
  1893. D TabControl
  1894. 191
  1895. This feature of the Help system attempts to
  1896. anticipate your help needs by displaying a list of
  1897. Help topics as a tool window:
  1898. A Index
  1899. B Contents tab
  1900. C Solution explorer
  1901. D Dynamic Help
  1902. 192
  1903. ____ a control button on the Windows Form
  1904. sheet adds a default-sized control to the upperleft
  1905. corner of the form.
  1906. A Drawing
  1907. B Dragging
  1908. C Double-clicking
  1909. D all of the above
  1910. 193
  1911. When using the Visual Basic .NET Help system,
  1912. you can narrow your searches by using the
  1913. following command:
  1914. A Index tab
  1915. B Dynamic Help
  1916. C Filtered by
  1917. D Contents tab
  1918. 194
  1919. What is the extension of the file that contains
  1920. the Visual Basic .NET instructions required to
  1921. create a Windows Form object? _____
  1922. A vb
  1923. B cpp
  1924. C cs
  1925. D js
  1926. 195
  1927. You can access Help in many areas of the
  1928. Visual Basic .NET IDE by pressing the ____
  1929. key.
  1930. A CTRL
  1931. B HOME
  1932. C ESC
  1933. D F1
  1934. 196
  1935. The default value for the Text property is ____,
  1936. a generic name that Visual Basic .NET assigns
  1937. when creating the form.
  1938. A 1Form
  1939. B Form
  1940. C NewForm
  1941. D Form1
  1942. 197
  1943. A ____ enables selection of one or more
  1944. predefined items from a list, or entry of a new
  1945. value.
  1946. A text box
  1947. B button
  1948. C combo box
  1949. D check box
  1950. Page 25 of 54
  1951. Go on to next page
  1952. 198
  1953. Which of the following controls would you use
  1954. so as to allow the user to select one item from a
  1955. list of items?
  1956. A List
  1957. B ListBox
  1958. C ItemList
  1959. D ItemBox
  1960. 199
  1961. The Boolean ____________________ property
  1962. of a menu item defines whether or not the user
  1963. can use that menu item.
  1964. A Checked
  1965. B Enabled
  1966. C ReadOnly
  1967. D Editable
  1968. 200
  1969. You use the ____ property to set the value of the
  1970. caption that describes the purpose of a check
  1971. box.
  1972. A Label
  1973. B Caption
  1974. C Text
  1975. D Display
  1976. 201
  1977. The appropriate control that is used to display
  1978. information to the user, but that cannot be
  1979. changed by the user is a _____ control.
  1980. A label
  1981. B button
  1982. C textbox
  1983. D form
  1984. 202
  1985. Which would be the best choice of a name for a
  1986. label component that prompts the user for a
  1987. name?
  1988. A name
  1989. B lblName
  1990. C label1
  1991. D namelab
  1992. 203
  1993. The appropriate control that will perform an
  1994. action after it is clicked by the user is a _____
  1995. control.
  1996. A label
  1997. B button
  1998. C textbox
  1999. D form
  2000. 204
  2001. The ____________________ represents the
  2002. order in which the control instances on a form
  2003. get input focus as the user presses the Tab key.
  2004. A tab order
  2005. B tab sort
  2006. C tab index
  2007. D focus order
  2008. 205
  2009. In VB .NET, the ____________________
  2010. control is used as a container for other control
  2011. instances.
  2012. A ActiveFrame
  2013. B FrameBox
  2014. C GroupBox
  2015. D Container
  2016. 206
  2017. The Boolean ____________________ property
  2018. of a menu item defines whether or not the user
  2019. can use that menu item.
  2020. A Name
  2021. B Text
  2022. C Caption
  2023. D MenuItem
  2024. 207
  2025. A(n) ____ is an attribute of an object or control,
  2026. such as its background color or the text that
  2027. displays with it.
  2028. A method
  2029. B key
  2030. C property
  2031. D icon
  2032. Page 26 of 54
  2033. Go on to next page
  2034. 208
  2035. The default value for the Text property is ____,
  2036. a generic name that Visual Basic .NET assigns
  2037. when creating the form.
  2038. A 1Form
  2039. B Form
  2040. C NewForm
  2041. D Form1
  2042. 209
  2043. A(n) ____ statement is a code statement that
  2044. changes the value of a variable or property of an
  2045. object or control.
  2046. A event
  2047. B conditional
  2048. C assignment
  2049. D syntax
  2050. 210
  2051. A variable type that is appropriate to store a
  2052. social security number (i.e. 472-65-9834) is
  2053. _______.
  2054. A Boolean
  2055. B Long
  2056. C Short
  2057. D String
  2058. 211
  2059. The ____________________ event of a
  2060. CheckBox control executes when the value of
  2061. the Checked property changes.
  2062. A CheckedChanged
  2063. B Check
  2064. C CheckState
  2065. D None of the above
  2066. 212
  2067. A variable type that is appropriate to store a
  2068. work phone number (i.e. 800-555-1212) is
  2069. _______.
  2070. A Boolean
  2071. B Long
  2072. C Short
  2073. D String
  2074. 213
  2075. The Height property, the Width property, and
  2076. the ____ property define the position and size of
  2077. a TextBox control on an application window.
  2078. A Size
  2079. B Location
  2080. C Position
  2081. D Orientation
  2082. 214
  2083. To declare a variable that will store the value
  2084. 0.113, you would use which of the following
  2085. data types?
  2086. A Single
  2087. B Short
  2088. C String
  2089. D Long Integer
  2090. 215
  2091. The ____ property determines the order in
  2092. which Visual Basic .NET sets the focus on
  2093. controls when a user presses the TAB key.
  2094. A TabIndex
  2095. B TabOrder
  2096. C TabFocus
  2097. D TabControl
  2098. 216
  2099. Reference type variables do not contain data.
  2100. Rather, they contain which of the following?
  2101. A The memory address of the object
  2102. B The value of the object's Text property
  2103. C The system date and time when the object
  2104. was created
  2105. D All of the above
  2106. 217
  2107. Which of the following standard flowchart
  2108. symbols is used to mark the beginning and end
  2109. of a routine?
  2110. A Oval
  2111. B Rectangle
  2112. C Parallelogram
  2113. D Diamond
  2114. Page 27 of 54
  2115. Go on to next page
  2116. 218
  2117. A relational expression that is preceded by the
  2118. ____ logical operator forms a condition that is
  2119. false when the relational expression is true.
  2120. A Not
  2121. B Or
  2122. C Rev
  2123. D Off
  2124. 219
  2125. Which of the following is a characteristic of a
  2126. multi-way If statement?
  2127. A It always contains at least one ElseIf
  2128. B The Else is optional
  2129. C The End If statement marks the end of the
  2130. multi-way If statement
  2131. D All of the above
  2132. 220
  2133. A ____ loop is a good choice if you do not want
  2134. to execute the statements within the loop body if
  2135. the terminating expression is true.
  2136. A counter-controlled
  2137. B sentinel-controlled
  2138. C pre-test
  2139. D post-test
  2140. 221
  2141. If we wish to use a logical condition to
  2142. determine if the AccountBalance is not less than
  2143. CreditLimit which of the following is correct?
  2144. A AccountBalance = CreditLimit
  2145. B AccountBalance >= CreditLimit
  2146. C AccountBalance <= CreditLimit
  2147. D AccountBalance <> CreditLimit
  2148. 222
  2149. In a loop, a(n) ____, which is either true or
  2150. false, determines whether the computer will
  2151. execute the loop again.
  2152. A executable
  2153. B condition
  2154. C range
  2155. D unary operator
  2156. 223
  2157. The ____ logical operator requires only one of
  2158. two or more conditions be true for the
  2159. compound condition to be true.
  2160. A Not
  2161. B Or
  2162. C And
  2163. D Either
  2164. 224
  2165. The ____ structure is useful when the evaluation
  2166. of a single expression can determine multiple
  2167. paths.
  2168. A If
  2169. B Immediate IF
  2170. C If..Then..Else
  2171. D Select Case
  2172. 225
  2173. The ____ logical operator requires that both
  2174. conditions be true for a compound condition to
  2175. be true.
  2176. A Or
  2177. B Not
  2178. C And
  2179. D Both
  2180. 226
  2181. A selection structure that has several distinct
  2182. alternatives all controlled by a common verb is
  2183. ____________.
  2184. A Select Case
  2185. B Execute Case
  2186. C Examine Case
  2187. D Determine Case
  2188. 227
  2189. Which of the following is a more efficient and
  2190. faster-executing substitute for the Do While
  2191. statement?
  2192. A If…While
  2193. B If…Then
  2194. C For…Next
  2195. D Select Case
  2196. Page 28 of 54
  2197. Go on to next page
  2198. 228
  2199. When the statements of one For…Next loop lie
  2200. within the range of another For…Next loop, the
  2201. loops are said to be ____.
  2202. A concatenated
  2203. B conformed
  2204. C looped
  2205. D nested
  2206. 229
  2207. When the statements of one For…Next loop lie
  2208. within the range of another For…Next loop, the
  2209. loops are said to be ____.
  2210. A concatenated
  2211. B conformed
  2212. C looped
  2213. D nested
  2214. 230
  2215. To create a hot key for a menu item, which of
  2216. the following characters must be typed in front
  2217. of the menu item name?
  2218. A &
  2219. B *
  2220. C @
  2221. D #
  2222. 231
  2223. When a nested selection structure is
  2224. encountered, the _____ decision is always made
  2225. by the inner selection structure.
  2226. A primary
  2227. B secondary
  2228. C binary
  2229. D none of these
  2230. 232
  2231. The Boolean ____________________ property
  2232. of a menu item defines whether or not the user
  2233. can use that menu item.
  2234. A Checked
  2235. B Enabled
  2236. C ReadOnly
  2237. D Editable
  2238. 233
  2239. When a nested selection structure is
  2240. encountered, the _____ decision is always made
  2241. by the outer selection structure.
  2242. A primary
  2243. B secondary
  2244. C binary
  2245. D none of these
  2246. 234
  2247. When naming a MenuItem, you should use the
  2248. ____ prefix to indicate a member of the
  2249. MenuItem class.
  2250. A mnu
  2251. B menu
  2252. C men
  2253. D mn
  2254. 235
  2255. The numeric counter variable in a For...Next
  2256. statement is _____.
  2257. A always a negative integer
  2258. B always a positive integer
  2259. C initialized only once at the beginning of the
  2260. loop
  2261. D always initialized
  2262. 236
  2263. n a Windows application, a menu is composed
  2264. of a collection of several menu items, including
  2265. ____.
  2266. A commands
  2267. B menu separators
  2268. C submenus
  2269. D all of the above
  2270. 237
  2271. Which of the following statements is true
  2272. regarding a pen?
  2273. A Pens are used to draw lines
  2274. B Pens are used to draw an outline around a
  2275. rectangle
  2276. C Pens have a color
  2277. D All of the above
  2278. Page 29 of 54
  2279. Go on to next page
  2280. 238
  2281. If you are drawing a string to a graphical output
  2282. device, you use what object to fill the characters
  2283. that make up the string?
  2284. A Pen
  2285. B Brush
  2286. C Rectangle
  2287. D None of the above
  2288. 239
  2289. Which of the following properties of the
  2290. PictureBox control contains the image displayed
  2291. in the control instance?
  2292. A SizeMode
  2293. B Picture
  2294. C BorderStyle
  2295. D Image
  2296. 240
  2297. Which Math class method returns the Integer
  2298. value 1, –1, or 0 when a number is positive,
  2299. negative, or 0 respectively.
  2300. A Abs()
  2301. B Sqrt()
  2302. C Sign()
  2303. D Value()
  2304. 241
  2305. If you wanted to fill a shape, such as a
  2306. Rectangle, with a solid color you would use a
  2307. _______.
  2308. A LinearGradientSolid
  2309. B LinearSolidBrush
  2310. C SolidBrush
  2311. D SolidPen
  2312. 242
  2313. The ____________________ control fires an
  2314. event named Tick at regular intervals as defined
  2315. by its Interval property.
  2316. A Clock
  2317. B TimerTick
  2318. C Stopwatch
  2319. D Timer
  2320. 243
  2321. The _______ property defines the color of a
  2322. pen. It is possible to use predefined colors or to
  2323. use custom colors.
  2324. A PenColor
  2325. B ColorPen
  2326. C Color
  2327. D Pen
  2328. 244
  2329. Which SizeMode property is set if the size of
  2330. the picture is as designed, but there is a blank
  2331. area surrounding the picture?
  2332. A AutoSize
  2333. B CenterImage
  2334. C Normal
  2335. D StretchImage
  2336. 245
  2337. The _______ provides the means by which
  2338. Windows displays text, lines, rectangles, and
  2339. more complex shapes.
  2340. A Graphical Device Interface (GDI+)
  2341. B Windows Drawing Interface (WDI)
  2342. C Graphical Drawing Methods (GDM)
  2343. D Drawing Management System (DMS)
  2344. 246
  2345. Which SizeMode property may distort some
  2346. images because it sizes an image to fit the
  2347. picture box?
  2348. A AutoSize
  2349. B Normal
  2350. C StretchImage
  2351. D CenterImage
  2352. 247
  2353. The statement Me.lblRandNum.Text =
  2354. Rnd()*100 generates random numbers
  2355. A less than or equal to 100.
  2356. B greater than or equal to 0 and less than 100.
  2357. C greater than or equal to 100.
  2358. D greater than or equal to 1 and less than or
  2359. equal to 100.
  2360. Page 30 of 54
  2361. Go on to next page
  2362. 248
  2363. How many arguments are passed in the
  2364. statement
  2365. Call CheckGuess(intAnswer, intGuess)?
  2366. A 1
  2367. B 2
  2368. C 3
  2369. D 4
  2370. 249
  2371. Visual Basic .NET programmers can display
  2372. messages to the user in a pop-up window called
  2373. a ____ box.
  2374. A display
  2375. B message
  2376. C notice
  2377. D warning
  2378. 250
  2379. Given a Dim statement of Dim intBalance(4) As
  2380. Integer, which of the following elements are
  2381. valid?
  2382. A intBalance(-4)
  2383. B intBalance(4)
  2384. C intBalance(5)
  2385. D all of the above
  2386. 251
  2387. The keyword used for a procedure that is called
  2388. only from other procedures in the same form is:
  2389. _____.
  2390. A Protected
  2391. B Sub
  2392. C Public
  2393. D Private
  2394. 252
  2395. Before arrays can be used, the amount of
  2396. memory to be reserved must be declared in the
  2397. program using the ____ statement for arrays.
  2398. A Declare
  2399. B Dim
  2400. C Reserve
  2401. D Var
  2402. 253
  2403. Function procedures
  2404. A perform several related tasks.
  2405. B alter arguments after they have been passed.
  2406. C must be called from another procedure using
  2407. the Call statement.
  2408. D perform a specific task and then return a
  2409. value.
  2410. 254
  2411. Which class provides constants that are used to
  2412. determine which buttons should be displayed for
  2413. a MessageBox?
  2414. A MessageBoxIcons
  2415. B MessageBoxButtons
  2416. C Buttons
  2417. D MessageBox
  2418. 255
  2419. The arguments in a Call statement must
  2420. A correspond in order to the parameters in the
  2421. procedure being called.
  2422. B have the same names as the corresponding
  2423. parameters in the procedure being called.
  2424. C correspond to ByRef parameters only.
  2425. D correspond to ByVal parameters only.
  2426. 256
  2427. In order to display a message box with a title in
  2428. the title bar, you use the ____ method of the
  2429. MessageBox class.
  2430. A Display()
  2431. B Show()
  2432. C Notice()
  2433. D Warning()
  2434. 257
  2435. Before arrays can be used, the amount of
  2436. memory to be reserved must be declared in the
  2437. program using the ____ statement for arrays.
  2438. A Declare
  2439. B Dim
  2440. C Reserve
  2441. D Var
  2442. Page 31 of 54
  2443. Go on to next page
  2444. 258
  2445. Given a Dim statement of Dim intBalance(4) As
  2446. Integer, which of the following elements are
  2447. valid?
  2448. A intBalance(-4)
  2449. B intBalance(4)
  2450. C intBalance(5)
  2451. D all of the above
  2452. 259
  2453. Which of the following statements assigns the
  2454. value of 5 to the fourth element in an array
  2455. named myArr?
  2456. A myArr(3) = 5
  2457. B myArr(4) = 5
  2458. C myArr(5) = 5
  2459. D myArr[4] = 5
  2460. 260
  2461. Which of the following buttons would minimize
  2462. an application?
  2463. A
  2464. B
  2465. C
  2466. D None of these
  2467. 261
  2468. The procedure header for a sub procedure will
  2469. show the variables which are called _____.
  2470. A arguments
  2471. B parameters
  2472. C values
  2473. D None of these
  2474. 262
  2475. Variables and constants contained inside the
  2476. parentheses on a call are referred to as _____.
  2477. A parameters
  2478. B arguments
  2479. C values
  2480. D None of these
  2481. 263
  2482. Assuming that a ListBox named lstQuestion
  2483. exists, which of the following statements
  2484. correctly adds an item to the ListBox?
  2485. A lstQuestion.Item.Add("Question")
  2486. B lstQuestion.AddItem("Question")
  2487. C lstQuestion.Items.Add("Question")
  2488. D None of the above
  2489. 264
  2490. Which of the following buttons would maximize
  2491. an application?
  2492. A
  2493. B
  2494. C
  2495. D None of these
  2496. 265
  2497. Which of the following buttons would close an
  2498. application?
  2499. A
  2500. B
  2501. C
  2502. D None of these
  2503. 266
  2504. Which language is useful for business
  2505. applications?
  2506. A COBOL
  2507. B LISP
  2508. C C++
  2509. D BASIC
  2510. 267
  2511. Which language was used to aid scientific and
  2512. mathematical programmers?
  2513. A FORTRAN
  2514. B BASIC
  2515. C COBOL
  2516. D LISP
  2517. Page 32 of 54
  2518. Go on to next page
  2519. 268
  2520. How many states do the electrical circuits on an
  2521. IC (integrated circuit) have?
  2522. A one: on
  2523. B two: on, off
  2524. C four: + - * /
  2525. D three: on, off, wait
  2526. 269
  2527. ___________________ is the decimal
  2528. representation of the binary number 1100.
  2529. A 12
  2530. B 9
  2531. C 10
  2532. D 11
  2533. 270
  2534. Classes ____ from superclasses and ____
  2535. interfaces.
  2536. A implement, inherit
  2537. B inherit, implement
  2538. C instantiate, designate
  2539. D inherit, associate
  2540. 271
  2541. ___________________ is the decimal
  2542. representation of the binary number 10001.
  2543. A 15
  2544. B 17
  2545. C 16
  2546. D 18
  2547. 272
  2548. By default, Visual Basic .NET creates a hidden
  2549. ____ for each class that you create.
  2550. A moderator
  2551. B constructor
  2552. C object manager
  2553. D aggregator
  2554. 273
  2555. Which of the following is a benefit of components?
  2556. A heightened data integrity
  2557. B improved performance
  2558. C reusability
  2559. D all of the above
  2560. 274
  2561. _________ is the binary representation of the
  2562. decimal 42.
  2563. A 101011
  2564. B 100011
  2565. C 110011
  2566. D 101010
  2567. 275
  2568. Every object in Visual Basic .NET includes a(n)
  2569. ____.
  2570. A aggregator
  2571. B object manager
  2572. C moderator
  2573. D constructor
  2574. 276
  2575. _____________ is the binary representation of
  2576. the decimal 27
  2577. A 11011
  2578. B 10111
  2579. C 11101
  2580. D 10011
  2581. 277
  2582. ____ are a type of reusable component in objectoriented
  2583. programming.
  2584. A Commands
  2585. B Constructors
  2586. C Collections
  2587. D Classes
  2588. 278
  2589. The way an application looks on the screen is
  2590. referred to as the
  2591. A interface.
  2592. B design.
  2593. C display.
  2594. D program.
  2595. 279
  2596. Which of the following contributes to look and
  2597. feel?
  2598. A font
  2599. B background color
  2600. C size and location of buttons
  2601. D All of the above
  2602. Page 33 of 54
  2603. Go on to next page
  2604. 280
  2605. Which key moves the insertion point to the
  2606. beginning of the line of text?
  2607. A the Ctrl key
  2608. B the Home key
  2609. C the Esc key
  2610. D the End key
  2611. 281
  2612. What is a pictorial representation of a step-bystep
  2613. solution to a problem?
  2614. A program
  2615. B flowchart
  2616. C an algorithm
  2617. D pseudocode
  2618. 282
  2619. The default button in a dialog box can be
  2620. selected by pressing the
  2621. A Enter key.
  2622. B Esc key.
  2623. C Alt key.
  2624. D Ctrl key.
  2625. 283
  2626. When Windows XP is running, the computer
  2627. screen is referred to as the
  2628. A Access the account of another user.
  2629. B Never change your password.
  2630. C Share your password.
  2631. D Be considerate of other people’s beliefs.
  2632. 284
  2633. Which is not a version of the Windows
  2634. operating system?
  2635. A Windows 2000
  2636. B Windows ME
  2637. C Windows NOW
  2638. D Windows XP
  2639. 285
  2640. A collection of related data stored on a lasting
  2641. medium is called a(n)
  2642. A file.
  2643. B extension.
  2644. C project.
  2645. D web page.
  2646. 286
  2647. When Windows XP is running, the computer
  2648. screen is referred to as the
  2649. A ScreenTip.
  2650. B GUI.
  2651. C Desktop.
  2652. D window.
  2653. 287
  2654. Which key is used to cancel the current
  2655. operation?
  2656. A the Delete key
  2657. B the Cancel key
  2658. C the Esc key
  2659. D the End key
  2660. 288
  2661. What is the input/output symbol in
  2662. flowcharting?
  2663. A square
  2664. B oval
  2665. C diamond
  2666. D parallelogram
  2667. 289
  2668. A decision is represented by which shape in a
  2669. flowchart?
  2670. A square
  2671. B oval
  2672. C diamond
  2673. D parallelogram
  2674. 290
  2675. The name of a Visual Basic .NET variable must
  2676. begin with a(n) _______.
  2677. A number
  2678. B letter
  2679. C underscore
  2680. D punctuation
  2681. 291
  2682. A ____ is assigned a literal value that does not
  2683. change.
  2684. A variable
  2685. B constant
  2686. C parameter
  2687. D structure
  2688. Page 34 of 54
  2689. Go on to next page
  2690. 292
  2691. Which of the following is a phase in the
  2692. development cycle of a program?
  2693. A analyze requirements
  2694. B document solution
  2695. C implement design
  2696. D all of the above
  2697. 293
  2698. ____ facilitate program readability,
  2699. understandability, and maintainability.
  2700. A Variables
  2701. B Naming conventions
  2702. C Data types
  2703. D Structures
  2704. 294
  2705. The characteristics that describe the object are
  2706. called _____.
  2707. A methods
  2708. B properties
  2709. C instances
  2710. D abstractions
  2711. 295
  2712. Why is 'Print' NOT a valid variable name?
  2713. A It does not start with a number.
  2714. B It does not have underscore as one of its
  2715. character.
  2716. C It is a Visual Basic .NET reserved word.
  2717. D It should be at least 6 characters.
  2718. 296
  2719. The set of characteristics that control an object's
  2720. appearance and behavior is called ____.
  2721. A attributes
  2722. B events
  2723. C global settings
  2724. D properties
  2725. 297
  2726. An item of data whose value does NOT change
  2727. while the application is running is _____.
  2728. A a literal constant
  2729. B a named constant
  2730. C a literal type character
  2731. D a variable
  2732. 298
  2733. Which of the following is not an example of a
  2734. literal constant?
  2735. A "Martin"
  2736. B 500
  2737. C State
  2738. D 3.14
  2739. 299
  2740. The Visual Basic .NET verb to create a variable
  2741. is ______.
  2742. A Declare
  2743. B Create
  2744. C Dim
  2745. D none of these
  2746. 300
  2747. In many programming languages, ____ is used
  2748. to visually identify groups of related statements.
  2749. A constant
  2750. B variable
  2751. C indentation
  2752. D parameter
  2753. 301
  2754. Clicking the ____ button saves all the files
  2755. associated with a project.
  2756. A Total Save
  2757. B Save
  2758. C Save All
  2759. D Save Selected Items As
  2760. 302
  2761. A ____ is assigned a literal value that does not
  2762. change.
  2763. A variable
  2764. B constant
  2765. C parameter
  2766. D structure
  2767. 303
  2768. Which area of the IDE is used to switch between
  2769. the Design and Code windows?
  2770. A the Toolbox
  2771. B the Start Page
  2772. C the Solution Explorer window
  2773. D the Properties window
  2774. Page 35 of 54
  2775. Go on to next page
  2776. 304
  2777. ____ improve program readability and also
  2778. facilitate program maintenance.
  2779. A Numeric values
  2780. B Variables
  2781. C Constants
  2782. D Integers
  2783. 305
  2784. Which area of the IDE contains controls that are
  2785. used to create objects?
  2786. A the Toolbox
  2787. B the Start Page
  2788. C the Solution Explorer window
  2789. D the Properties window
  2790. 306
  2791. ____ facilitate program readability,
  2792. understandability, and maintainability.
  2793. A Variables
  2794. B Naming conventions
  2795. C Data types
  2796. D Structures
  2797. 307
  2798. In Visual Basic .NET, ____ are declared at the
  2799. lowest possible level.
  2800. A constants
  2801. B parameters
  2802. C variables
  2803. D strings
  2804. 308
  2805. Which area of the IDE contains controls that are
  2806. used to create objects?
  2807. A the Toolbox
  2808. B the Start Page
  2809. C the Solution Explorer window
  2810. D the Properties window
  2811. 309
  2812. Which area of the IDE is used to change the text
  2813. displayed in a Label object?
  2814. A the Toolbox
  2815. B the Start Page
  2816. C the Solution Explorer window
  2817. D the Properties window
  2818. 310
  2819. Which type of error produces undesired or
  2820. unexpected results?
  2821. A syntax error
  2822. B logic error
  2823. C dynamic error
  2824. D run-time error
  2825. 311
  2826. A Watch window can be used to
  2827. A display the application interface.
  2828. B examine values during the execution of a
  2829. program.
  2830. C switch to the Code window.
  2831. D display online help.
  2832. 312
  2833. Misspelling the word Integer would result in
  2834. which type of error?
  2835. A syntax error
  2836. B logic error
  2837. C dynamic error
  2838. D run-time error
  2839. 313
  2840. A statement that has been marked as a stopping
  2841. point is called a
  2842. A Watching statement.
  2843. B breakpoint.
  2844. C debug statement.
  2845. D stop point.
  2846. 314
  2847. Clicking the ____ button saves all the files
  2848. associated with a project.
  2849. A Total Save
  2850. B Save
  2851. C Save All
  2852. D Save Selected Items As
  2853. 315
  2854. Misspelled keywords and variable names are
  2855. examples of ____ errors.
  2856. A logic
  2857. B execution
  2858. C configuration
  2859. D syntax
  2860. Page 36 of 54
  2861. Go on to next page
  2862. 316
  2863. To start an application using the menu bar you
  2864. would click _________ and then click start.
  2865. A Debug
  2866. B Project
  2867. C View
  2868. D Build
  2869. 317
  2870. Which type of error halts the program when a
  2871. statement cannot be executed?
  2872. A syntax error
  2873. B logic error
  2874. C dynamic error
  2875. D run-time error
  2876. 318
  2877. Visual Basic .NET allows you to add variables
  2878. and expressions to up to ____ Watch windows.
  2879. A three
  2880. B four
  2881. C six
  2882. D eleven
  2883. 319
  2884. The ____ window displays variables within the
  2885. scope of the current procedure.
  2886. A Locals
  2887. B Current
  2888. C This
  2889. D Me
  2890. 320
  2891. Which of the following buttons are by default on
  2892. an applications title bar?
  2893. A minimize
  2894. B maximize
  2895. C close
  2896. D all of the above
  2897. 321
  2898. What would Visual Studio .NET name the first
  2899. form file you create?
  2900. A Module1.vb
  2901. B Form1.vb
  2902. C Form1.frm
  2903. D F1.vb
  2904. 322
  2905. The Form window is an instance of Visual
  2906. Basic's ____ class.
  2907. A derived
  2908. B abstract
  2909. C object
  2910. D form
  2911. 323
  2912. Which of the following would be appropriate as
  2913. an object name?
  2914. A Last.Name
  2915. B FirstName
  2916. C #HoursWorked
  2917. D $PayRate
  2918. 324
  2919. To hide a Help window, ____ the tab of the
  2920. window and click Hide on the shortcut menu.
  2921. A click
  2922. B right-click
  2923. C double-click
  2924. D triple-click
  2925. 325
  2926. Which of the following would be appropriate as
  2927. an object name?
  2928. A Last_Name
  2929. B 9DigitZip
  2930. C txtHoursWorked
  2931. D a and c are appropriate