STUDENT TEST BOOKLET

This test section contains Twenty-four multiple-choice questions. Please mark your answers for the multiple-choice questions in the spaces provided on your Student Response Booklet. Mark only one answer for each question. If you do not know the answer, make your best guess. DO NOT WRITE ANY ANSWERS IN THIS TEST BOOKLET. WHEN YOU FINISH, DO NOT WORK ON ANY OTHER TEST SECTION.
1. / Brad has been contacted by ABC Farm Supply to build a computer program to help them enter customer’s names, addresses and phone numbers each time they visit the store. Which of the following would best allow Brad to accomplish this task?
A. / Command Buttons
B. / Image Boxes
C. / Labels
D. / Text Boxes
2. / Jane has recently modified a program for the Pizza & Pasta Shop. One of the requests from the employees at the Pizza and Pasta Shop was an easy way to end the program. Which of the following would accomplish this task while using Visual Basic?
A. / Insert a Label with the caption of End.
B. / Insert an image of a stop sign into the program and after double clicking on the image type Image1.caption = “End”
C. / Insert a textbox so that the user can type the text End to stop the program.
D. / Insert a command button, change the caption to End and after double clicking the command button type the code END
3. / Ralph and Sam both work for Nelson’s Programming Shop as head programmers for their division. Recently Ralph and Sam have had a disagreement over Image boxes, the operation of image boxes and the properties associated with image boxes. Select the statement below that is not true concerning image boxes.
A. / Image boxes can be used to perform operations such as stopping a program or displaying information within the program screen.
B. / The Image property stretch allows the picture to be resized so that it can fit into the image box designed by the user.
C. / The image box property visible allows the image to be hidden or displayed during program execution.
D. / Image boxes cannot be stacked on top of each other because this will cause coding issues.

PLEASE GO ON TO THE NEXT PAGE 

4. / Katy was recently asked to examine a section of code that was found inside a program being used at an insurance agency. The section of code that Katy was handed was as follows: Text1Text = Val(Text2.text) * .06. Select the statement below that best explains this mathematical equation
A. / Text1 and the value of text two if equal to each other will be multiplied by .06
B. / The program will end if the value inside of Text2 is .06
C. / The program will multiply the value entered in text2 by .06
D. / The program will display the result of text2.text * .06 in Text1
5. / Mary is working on a research program design for NASA and has entered several complex mathematical equations into the program. One of the equations inserted is: Label2.caption = text1.text + text2.text + text3.text. Mary plans to test her program by entering the value of 2 into text1, the value of 4 into text2 and the value of 1 into text3. The output once a calculate command button is pressed would be which of the following choices?
A. / 7
B. / The program will issue an error message
C. / 6
D. / 241

** Use the following screen shot to answer questions (6-9)**

6. / Al is trying to ensure that when a user enters data into text1 and text2 and wants to clear the information from the textboxes that command1 can be pressed to perform this operation. What code would be inserted into this command button?
A. / Text1.text = CLEAR
Text2.text = CLEAR
B. / Text1.text = “Clear”
Text2.text = “Clear”
C. / Text1.caption = “”
Text2.caption = “”
D. / Text1.text = “”
Text2.text = “”

PLEASE GO ON TO THE NEXT PAGE 

7. / The state sales tax has changed and Bill needs to update the program to calculate sales tax using 6%. Which of the following statements would allow the user to enter the price of an item in Text1, click on command 1 and then display the sales tax amount in Text 2?
A. / Text2. text = val(text1.text) * 6%
B. / Text1.text = val(text2.text) * 6%
C. / Text2.text = val(text1.text) * .06
D. / Text2.text = val(text1.text) + .06
8. / Carl wants to add two image boxes into the program with the names of Image1 and Image2. He wants to be able to click on command1 and have Image1 to display on the screen and Image2 to hide on the screen. Carl has set the visible property for both images to false. What code needs to be entered so that the correct image will show and the correct image will hide?
A. / Image1.visible = false
Image2.visible = true
B. / Image1.visible = true
Image2.visiable = false
C. / This cannot be performed within Visual Basic
D. / Image1.visible = show
Image2.visible = hide
9. / After coding all parts of his assigned program Eric is ready to run his program and also check the program for errors. Which of the following illustrates what could happen next while using Visual Basic?
A. / Eric will select the start button and his program will ask him to save his program before it is run within visual basic.
B. / Eric will select the start button and yellow lines will outline the correct lines of code within the coding window.
C. / Eric will select the start button and any errors detected by Visual basic will be shown to the program user for review
D. / Eric will need to install VB98 before trying to run his program otherwise nothing will happen.
10. / Andrew has been asked by the computer programming manager to create a way to allow a user to select one item from a group of one hundred cake types. Andrew has been informed that he has a limited area within his program and should select the most compact way to allow this selection to be made. What type of structure should Andrew select?
A. / Option Buttons
B. / Check Boxes
C. / Command Buttons
D. / Combo Box

PLEASE GO ON TO THE NEXT PAGE 

11. / Alex needs to create a picture to place within his computer program. Which of the following applications would allow Alex to create his needed picture?
A. / Microsoft Access
B. / Paint
C. / Macromedia Dreamweaver
D. / Notepad
12. / Alberta is designing a frame that contains accessories for four wheelers. She wants the user to be able to select multiple items within the frame at a time? Which of the following structures should Alberta select?
A. / Option Buttons
B. / Check Boxes
C. / Command Buttons
D. / Combo Box
13. / Craig has been asked by his boss at Video Plus to place the entire movie inventory into a computer-based program for employees to use to select movies for purchase. Craig wishes to design a program in which the user can select multiple items from the store to purchase at once. What selection should Craig make?
A. / Utilize option buttons that are built within a frame so that multiple items can be selected.
B. / Insert a command button that will require the user to type in the movie title and then select a search button that will display the movie on the program screen.
C. / Write an If statement that will check to see what movie has been selected from a timer control hidden within the program.
D. / Add check boxes into a frame so that multiple items can be selected.
14. / Kim is currently developing a program that will allow car shoppers to select and view an interior color when an option button is selected. Which of the following code segments should be placed into a command button so that when option1 is selected, image 1 appears on the screen?
A. / If option1.value = 1 then
Image1.visible = true
End if
B. / If option1.value = true then
Image1.visible = true
End if
C. / Image1.visible = true
D. / If option1.value = true then
Image1.visible = false
End if

PLEASE GO ON TO THE NEXT PAGE 

15. / Ken has been asked to speak to all junior programmers about the selection process between option buttons and check boxes. Which of the following statements would be accurate information for Ken to include within his presentation?
A. / Check boxes are used to help a user select multiple items within a program. Option buttons are used to help a user make a single selection within a program.
B. / Check boxes require less code than an option button within a program.
C. / Check boxes and option buttons are only different based on appearance within the program. The coding for both buttons is identical.
D. / Check boxes and option buttons should not be utilized within the same program due to both being selection control buttons. The coding within the program would produce an error message.
16. / Which of the following code segments would add 50 cents to a variable called total if check5 has been selected when a command button is pressed?
A. / Label2.caption = Total +.50
B. / If check5.value = true then
Total = total + .5
End if
C. / If total < 0 then
Total + .50
End if
D. / If check5.value = 1 then
Total = total + .5
End if
17. / Label2.caption = val(Text1.text) + val(label3.caption).
Which of the following statements explains the operation of the above section of code?
A. / The value of text1 will be added to the value of label3.caption and will be stored into a variable
B. / Label2 will be added to the values found in text1 and label3
C. / Text1 and label3 will be added together and the result will be placed in label2
D. / The program will issue an error due to label3 not being the same type as the text box being used with the first value.

PLEASE GO ON TO THE NEXT PAGE 

18. / Dot is working on listing her favorite songs in a combo box within a visual basic program. Dot wants a picture of the band to display when a song that they perform is selected within the combo box. What code would Dot need to use within her combo box to make the pictures display correctly?
A. / Image1.visible = true will be placed into the list section for each song that is represented. The only change in code will be the number that appears after the word Image
B. / If combo1.text = “Insert Song Name” Then
Image1.visible = true
Image2.visible = false **All other images would be set to false below this section.
End if
C. / If combo1.value = “Insert Song Name “ then
Image1.visible = true
End if
D. / The code would be inserted into multiple sections of the program so that each group is included and a picture would show up correctly on the screen.
19. / Buck has been asked by the general manager at Big City Auto Center to design an application that will allow the entire car and truck inventory to be included. Buck has decided to utilize a combo box within the application. Which of the following statements is not true concerning combo boxes?
A. / The items to be displayed in a combo box are entered into the list property
B. / The text property displays the active/currently-selected item within the combo box.
C. / Combo boxes save space within a program due to there design and setup
D. / Combo boxes require code to be copied into two places so that an item can be selected and then be displayed onto the screen.
20. / Billy Jo has been asked to use more frames within his program design. Which statement below will best explain their overall purpose to Billy Joe?
A. / Frames allow items to be grouped and moved easily within the program design screen.
B. / Frames allow program code to be easily copied form one section of a program into another section.
C. / Frames add extra graphical design into a program by allowing word art and other features to be inserted.
D. / Frames add security within program design and allow the user to make multiple selections with just a single click.

PLEASE GO ON TO THE NEXT PAGE 

21. / Stu was recently assigned the task of correcting minor errors within a junior programmers street racing game. The game allows the user to select modifications using a combo box but when the reset button is pressed the modification remains in the combo box. What code does Stu need to insert into the reset button so that the information is removed?
A. / clear
B. / Combo1.text = “ “
C. / Combo1.list = “ “
D. / Combo1.index = “ “
22. / Ken needs a way to keep all of his option buttons together within a program so that he can move all option buttons at one time. What type of structure should Ken use to accomplish this task?
A. / Timer
B. / Command Button
C. / Frame
D. / Line
23. / Which of the following would be the result of the code segment text1.text + text2.text if the value of 2 was entered into text1 and the value of 2 entered into text 2?
A. / 4
B. / 2
C. / 22
D. / 0

PLEASE GO ON TO THE NEXT PAGE 

Use The Following Article To Answer Question #24

Science Fiction’s Take on the Future of Computers: Visionaries and Imaginaries

byKevin Anderson (TheKJA)17-10-201106:00 AM- edited 17-10-201103:14 PM

As a science fiction writer, I am often asked about the genre’s track record in predicting the future, and certainly SF has had some great successes. My favorite anecdote, hands down, is about the little-known pulp science fiction author Cleve Cartmill, who in 1944 wrote a story called “Deadline” for Astounding Stories in which he described in great detail a secret government program (on an alien world) that was developing a super-weapon based on the fission of Uranium-235. Since at the time the U.S. government had just such a secret program, the Manhattan Project, developing just such a U-235 nuclear weapon, the FBI showed up at Cartmill’s door and demanded to know who had leaked the information; it took him some time to convince them that he’d just made it up.

Science fiction has had some major predictive flops as well, such as when SF legend Isaac Asimov famously suggested that computers would become so big and so powerful that they would eventually grow to the size of planets. Or when Robert Heinlein has his advanced astrogators calculating star navigation using slide-rules. Or when Frank Herbert had scientists in a far-future society hooking up magnetic reel-to-reel tapes…

Over the past century a lot of science fiction has been published, showcasing a lot of wild ideas, and if you sit enough authors at enough typewriters or word processors, somebody is bound to get a few things right. Science fiction’s greater influence, though, goes beyond whether or not the authors can make a good guess.

Rather than predicting the future, the SF genre is much better at inspiring the future. Visionaries read or see cool ideas in their favorite SF books or films, then decide how to make it a reality.

I did a lot of research on the life of Jules Verne for my recent novel Captain Nemo. Verne is often credited with predicting the sub-marine boat, but the idea had been around long before he ever wrote 20,000 Leagues Under the Sea. However, the designers of the world’s first nuclear submarine, launched in 1954, claimed to be inspired by Verne to make such a vessel a reality. Appropriately, the first nuclear sub was christened the Nautilus.

Verne wrote, “What one man can imagine, another can achieve.”

And science fiction writers can imagine a lot. Watch classic Star Trek, and each time Captain Kirk opens his (now rather large and clunky) communicator, you’ll see the inspiration for cell phones. Mr. Spock’s tricorder inspired generations of PDAs, from the Apple Newton to the Palm Pilot and beyond. In the late 1980s in Star Trek: The Next Generation, each time Captain Picard used a personal datapad he was holding the inspiration for a modern tablet computer. In the film Minority Report, based on a Philip K. Dick short story, one of the most striking visual gimmicks is the directly manipulable window- and icon-based computer interface; in the (at the time) wildly futuristic scenes, Tom Cruise uses his hands to open and resize windows, move them around, touch icons … you know, the same stuff we do every day on smartphone screens or iPads.

Some science fiction visionary imagined those things, and some tech visionary figured out how to make them a reality.

I asked several of my SF writer colleagues to turn on their imaginations, let their ideas flow, and sound off on any aspect of where they thought the future of computing might go. Maybe they’ll inspire new technologies we will all be using in a few years.

Here’s what they came up with:

Mike Resnick has won more major awards than any other writer in the history of the genre, with a trophy case groaning under the weight of countless Hugos, Nebulas, and other awards. He says:

Let me begin by saying that although I've made my living writing science fiction on my computer since 1982, I know very little about it except that 1) I hate it, 2) I fear it, and 3) I need it.

Now, one of the reasons for this attitude is that I am officially an Old Guy, and I can remember objects things that our kids have never seen and probably don't believe in, things like typewriters and ovens that aren't microwaves.

I think the biggest problem with computers is that they were created by hackers for other cognoscenti, and they're still not wildly user-friendly. To get back to microwaves for a moment, how widespread do you think they'd be if you had to learn as much about how to use them as you do about your PC or your Mac?