Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. When is the expression \"Not cond1\" true? A) none of the above B) when cond1

ID: 3657140 • Letter: 1

Question

1. When is the expression "Not cond1" true? A) none of the above B) when cond1 is false C) when cond1 is true D) when cond1 is either true or false 2. The process of transmitting values to a Sub procedure is known as A) convenying B) passing C) referencing D) evaluating 3. Control break processing means which of the following? A) A program that processes data based on a variable that maintains a constant value. B) A program that processes data based on a variable type. C) A program that processes data based on a variable scope. D) A program that processes data based on a change to the value of a variable. 4. The ______ of a Sub procedure are vehicles for passing numbers and strings to the Sub procedure. A) arguments B) Call statements C) variables declared inside D) parameters 5. When a file is opened for Append, A) data written to the file replaces the data already there. B) data written to the file are inserted at the beginning of the file. C) data written to the file are added at the end of the file. D) data may be read starting at the beginning of the file. 6. Which of the following methods is used to load a new picture into a picture box control? A) picBox.Image = Image.FromFile(filespec) B) picBox.Picture = filespec C) picBox.Picture = LoadPicture(filespec) D) picBox.Image = filespec 7. Suppose a variable is to tell whether or not the user wants further information. A good data type for such a variable is A) integer B) double C) boolean D) string 8. Suppose the days of the year are numbered from 1 to 365 and January 1 falls on a Tuesday as it did in 2008. What is the correct For statement to use if you want only the numbers for the Thursdays in 2008? A) For i As Integer = 365 To 1 Step -7 B) For i As Integer = 3 To 365 Step 6 C) For i As Integer = 1 to 365 Step 3 D) For i As Integer = 3 to 365 Step 7 9. When merging sequential files without duplications, one possible algorithm calls for opening two ordered files for input and a third file for output. Then, an item of data is retrieved from each ordered file and the item with precedence is written out to the third file. If, however, the two retrieved items are identical, which of the following should take place? A) neither item is written out to the third file and a new item is retrieved from each of the ordered files B) one item is written into the third file and a new item is retrieved from each of the ordered files C) both items are deleted and a new item is retrieved from each of the ordered files D) both items are written out to the third file and a new item is retrieved from each of the ordered files 10. When using the logical operator "And", what part of the expression must be true? A) only the right part. B) either the left or right part, but not both. C) both parts D) only the left part. 11. Which of the following is NOT a reason for using procedures? A) They make a program run faster. B) They make it possible for a team of people to work together on a single program. C) They break a complex problem down into smaller pieces. D) They can be reused easily. 12. The type of error that is normally spotted by the Code Editor is: A) run-time B) user C) syntax D) logical 13. which of the properties in a control's list of properties is used to give the control a meaningful name? A) Name B) text C) control1 name D) contextmenu 14. Opening a file for output means that A) data may be stored onto the disk B) data may be read from and stored onto the disk C) data may be read from the disk D) anything that appears as output on the screen is written to the disk 15. Visual Basic is considered to be a A) package B) higher-level language C) first-generation language D) machine language 16. Which value for x would make the following condition true: Not (x >= 5) A) x is equal to 5.001 B) x is equal to 4 C) all of the above D) x is equal to 7 17. What is the value of Int(8.9)? A) 8.9 B) 8 C) 9 D) 1 18. Which of the following is not a main type of event that can be triggered by user selections of items in a list box? A) SelectedIndexChanged event B) click event C) FillDown event D) DoubleClick event 19. Which of the following techniques always toggles the "on" and "off" states of a radio button control? A) Click on the circle or its caption with the mouse. B) Set the Checked property equal to True. C) Press on another radio button in the same group box. D) none of the above E) Press the spacebar when the circle has the focus. 20. If the loop is to be executed at least once, the condition should be checked at the A) bottom of the loop B) middle of the loop C) top of the loop D) nothing should be checked 21. Items appearing in the parentheses of a Call statement are known as A) call variables B) call strings C) parameters D) arguments 22. In analyzing the solution to a program, you conclude that you want to construct a loop so that the loop terminates either when (a < 12) or when (b = 16). Using a Do loop, the test condition should be A) Do Until (a < 12) Or (b = 16) B) Do Until (a < 12) And (b = 16) C) Do Until (a > 12) Or (b = 16) D) Do Until (a > 12) And (b = 16) 23. Which of the following controls has a drop down arrow and an attached text box that allows users to type selections? A) Both C and D B) ComboBox C) CheckedListBox D) ListBox E) DateTimePicker 24. A) 200 B) 0 C) 400 D) 600 E) None of the above 25. Which of the following steps turns off a timer control? A) Set the Interval property to zero. B) Make the timer control invisible. C) None of the above. D) Set the Enabled property to False. 26. Asc("A") is 65. What is displayed by txtBox.Text = Chr(65) & "BC"? A) ABC B) A BC C) 56667 D) Not enought information is available 27. Suppose the Double variable num has the value 123.4567. What value will the following statement assign to num? A) 123.45 B) 123.46 C) 123.457 D) 123.4567 28. Which of the following exceptions will be generated by trying to access a disk drive that doesn't contain a disk? A) NullReferenceException B) OverflowException C) IndexOutOfRangeException D) IO.DirectoryNotFoundException E) IO Exception was unhandled 29. The largest possible value for the Value property in a scroll bar is determined by A) the LargeChange property. B) the Minimum property. C) the Maximum property. D) the Maximum property and the LargeChange properties together. E) the Value property. 30. What is the key difference between a group of check boxes attached to a group box and a group of radio buttons attached to a group box? A) Only radio buttons can be toggled. B) Only one radio button at a time can be checked. C) The only difference is the shape of the control. D) Check boxes cannot be attached to a group box

Explanation / Answer

1. When is the expression "Not cond1" true?
B) when cond1 is false
2. The process of transmitting values to a Sub procedure is known as
B) passing
4. The ______ of a Sub procedure are vehicles for passing numbers and strings to the Sub procedure.
D) parameters
5. When a file is opened for Append,
C) data written to the file are added at the end of the file.
6. Which of the following methods is used to load a new picture into a picture box control?
A) picBox.Image = Image.FromFile(filespec)

7. Suppose a variable is to tell whether or not the user wants further information. A good data type for such a variable is
C) boolean

8. Suppose the days of the year are numbered from 1 to 365 and January 1 falls on a Tuesday as it did in 2008. What is the correct For statement to use if you want only the numbers for the Thursdays in 2008?
D) For i As Integer = 3 to 365 Step 7

9. When merging sequential files without duplications, one possible algorithm calls for opening two ordered files for input and a third file for output. Then, an item of data is retrieved from each ordered file and the item with precedence is written out to the third file. If, however, the two retrieved items are identical, which of the following should take place?
B) one item is written into the third file and a new item is retrieved from each of the ordered files

10. When using the logical operator "And", what part of the expression must be true? C) both parts

11. Which of the following is NOT a reason for using procedures?
A) They make a program run faster.

12. The type of error that is normally spotted by the Code Editor is:
C) syntax
13. which of the properties in a control's list of properties is used to give the control a meaningful name? A) Name

14. Opening a file for output means that A) data may be stored onto the disk

15. Visual Basic is considered to be a B) higher-level language

16. Which value for x would make the following condition true: Not (x >= 5)
B) x is equal to 4

17. What is the value of Int(8.9)?
C) 9

//good luck with the rest of the question