















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A study guide for the cis surgical instrument specialist exam 1, covering chapters 1-4. It provides a comprehensive overview of the key topics and concepts that will be tested on the exam, including an explanation of hardware and software components, programming languages, algorithms, and event-driven programming. The guide also covers important programming concepts such as variables, data types, and control structures, as well as techniques for testing and debugging code. With detailed explanations and sample code, this study guide is designed to help students prepare for the exam and achieve a high score.
Typology: Exams
1 / 23
This page cannot be seen from the preview
Don't miss anything!
David Mungai [Date] [Course title]
What are the 5 major hardware components of a computer system? - Answer>> 1) Central Processing Unit (CPU)
What does event-driven mean? - Answer>> Programs that operate in a GUI, responds to an event or action taken place in a program EX) when a user clicks a button, a click control occurs. Goes behind the form code What is a property? - Answer>> Piece of data that determines some characteristic of the control. EX) Text Property, Label Property, Button Property Why should a programmer change the name of a control from its default name? - Answer>> So it describes the purpose of the control and the user can easily determine which control it is If a control has the programmer-defined name txtRadius, what type of control is it? - Answer>> TextBox Control What is the default name given to the first textbox control created in an application? - Answer>> TextBox Is First+Lastname an acceptable control name? Why or why not?
Describe the importance of good planning in the process of creating a VB application - Answer>> If you don't plan what you want the program to do, then you're probably going to miss some values in the making. Helps you avoid errors that may not otherwise be anticipated. What does it mean to visualize a program running? What is the value of such an activity? - Answer>> 1st step in creating Application's form or Windows: User needs to imagine what the computer screen looks like and create it in your mind when the program is running What goes behind the form code? - Answer>> Buttons - are clickable/actionable; event-driven What is a flowchart? - Answer>> diagram that graphically depicts the flow of the model Starts with an oval labeled "Start" followed by rectangles stating what the occupational process is and ends with another oval labeled "End" Used to write actual code What is pseudocode? - Answer>> Human readable code that looks similar to programming language code. EX) Store # of hours worked X Hourly Pay Rate in the grossPay variable Store the value of the grossPay variable in the lblGrossPay control's Text property Programmers find it helpful to plan an algorithm in a language thats almost a programming language that makes sense to humans
used commands such as undo, redo, save, start debugging, stop debugging Toolbox is a window that allows you to select CONTROLS that you want to use in an application's user interface such as Button, Label, TextBox. Controls have properties Whats the difference between the toolbar and the toolbox? - Answer>> Toolbar is a set of buttons that execute frequently used menu commands. Toolbox provides buttons for placing controls. -It is a window that allows you to select controls that you want to use in an application's user interface such as Button, Label, TextBox Chapter 2 - Answer>> Creating applications If you want to change what is displayed in a form's title bar, which of its properties should you change? - Answer>> Text property How do you insert a label control onto a form? - Answer>> Go to Toolbox Then Common Controls Then click label What is the purpose of control's sizing handles? - Answer>> To make the control the size you want it to work with the whole design. Re-size the control's bounding box. How do you delete a control? - Answer>> Click the control and then press the delete button
What happens when you set a PictureBox control's SizeMode property to StretchImage? - Answer>> The image stretches and becomes a little deformed. The image will be re-sized both horizontally and vertically to fit the PictureBox control. If the image is re-sized more in one direction than the other, it will appear stretched. What is the name of the dotted line rectangle surrounding the Label control when looking at a form in design mode? - Answer>> Bounding Box. (sizing handles) What are the three modes in which Visual Studio operates? - Answer>> Design- creates application "design time" Run- Executes application in VS environment "run time" Break- Suspends execution of a running app "debugging process" Describe 3 ways to open an existing project - Answer>> -file- open project- find project. -File on Menu bar- Recent Projects and Solutions -Start Page- Open Project- Open project Window- Recent projects -properties drop down list -select label1 control and click categorized button What are the two viewing modes for the Properties window? How do you select either of these modes? What is the difference between the two? - Answer>> Alphabetical and Categorized (Listed in groups) In the properties window.. What category does the Text property appear? The Name property? - Answer>> Text- Appearance category Name- Design category
What happens when you modify a Label control's ForeColor property? - Answer>> The label's text foreground color changes to the color you selected What property do you set in order to prevent a form from being resized when the application is running? - Answer>> FormBorderStyle property What happens when you lock the controls on a form? - Answer>> They can't be accidently moved in design-time, but they can be deleted. How do you lock the controls on a form? - Answer>> Place the cursor over an empty spot on the form and right-click. A small menu pops up. One of the selections on the menu is Lock Controls. How do you unlock the controls on a form? - Answer>> Place the cursor over an empty spot on the form and right-click. A small menu pops up. One of the selections on the menu is unlock Controls. Suppose an application has a label control named lblTemperature. Write a code statement that causes the label's Text Property to display the message "48 degrees" - Answer>> lblTemperature.Text = "48 degrees" What happens when a Label's control's AutoSize property is set to false? When its set to True? - Answer>> False- usability in the sizing handles to change its size in the designer window. True- label's bounding box will automatically resize to accommodate the text in the label's Text property
What're the possible values for the Label control's BorderStyle property, and what result does each value produce? - Answer>> None- no border FixedSingle- outlined with a border that is a single pixel wide Fixed3D- recessed 3D appearance Suppose an application has a Label control named lblName. Write the programming statements described by the following: -statement that aligns the label's text in the top right -statement that aligns the label's text in the bottom left -statement that aligns the label's text in the top center - Answer>> lblName.TextAlign = ContentAlignment.TopRight lblName.TextAlign = ContentAlignment.BottomLeft lblName.TextAlign = ContentAlignment.TopCenter What is a dialog box? - Answer>> Small window that displays a message Write a statement that displays a message box showing the message "Welcome to our hotel" - Answer>> MessageBox.Show("Welcome to our hotel") The following statement is not written correctly, what's wrong with it? MessageBoxshow("Invalid password") - Answer>> MessageBox.Show("Invalid password") DOT SHOW What is context-sensitive help? - Answer>> help screen for a single topic that you are currently working on when you press F Key. What textbox property holds text entered by the user? - Answer>> They appear in the TextBox control.
What is meant when it is said that a control has the focus? - Answer>> When an application is running, and a form is displayed, one of the form's controls always has the focus. Its the control that receives the user's keyboard input. only text boxes and buttons can have a focus Write a statement that gives the focus to the txtLastName control.
"Show & Map" to show up, you put two && in the Text Property. Using two & doesn't define an access key. What is an accept button? Cancel button? How do you establish these buttons on a form? - Answer>> Accept- button on a form that is automatically clicked when the user presses the Enter key. Cancel- same thing with the Esc key On the properties window, it says Acceptbutton and Cancelbutton with a down-arrow button and you select which button on the form you want those to be. What is a variable? - Answer>> Storage location for computer memory that holds data while a program is running -Data it holds can be changed by statements in the program How do we get user input? - Answer>> From input placed inside textboxes and other controls Write the literal date and time for the following: 5:35:00 PM on February 20th, 2013 - Answer>> Dim dtmBirth As Date dtmBirth = #2/20/2013 5:35:00 PM# Show an example of a variable declaration - Answer>> Declare Variables- Numeric and Character Variables Dim intLength As Integer Statement that creates a variable in memory when a program executes TryParse - Answer>> Puts an input number into a variable. Checks for an input to see if its an integer number, attempts to convert a string to a variable.
What value will be stored in dblResult after the following statement executes? dblResult = CInt("28.5") - Answer>> dblResult= 28 Will the following statement execute or cause a runtime error? dblResult = CDbl("186,478.39") - Answer>> execute. dblResult= 186478. (no commas) What is a named constant? - Answer>> An identifier (variable) that is given a type and constant value. Variable who's content is read only and cannot be changed by a programming statement while the programming is running. The following is the general form of a ______ ______ declaration. Const ConstantName As DataType = Value Assuming that intNumber is an integer variable, what value will each of the following statements assign to it? a) intNumber = 27 b) IntNumber = CInt(12.8) c) intNumber = CInt(12.0) d) intNumber = (2+4)*3 - Answer>> a) 27 b) 13 c) 12 d) 18 Which function converts the string "860.2" to value of type Double? - Answer>> CDbl (expr) Converts an expression to double How would the following strings be converted to the Cdec function? a) 48.
b) $34. c) 2, d) Twelve - Answer>> a) 48 (rounds to nearest even integer) b) 35 (rounds up) c) 2300 d) Cannot be converted since its not a number What is a function? - Answer>> A special type of procedure. When you call a ______ you typically send data to function as input. The ______ performs an operation using that data and then it sends a value back as output. Ex: Dim dblRealNumber as Double = 3. Dim intWHoleNumber As Integer = 0 IntWHoleNUmber = CInt(dblRealNumber) Write a statement that uses the ToString method to convert the contents of a variable named dblSalary to a Currency format - Answer>> Dim dblSalary As Double Dim strResult As String dblSample = 1234. strResult = dblSample.ToString("c") For each of the following numeric formats, identify the format used as the input parameter when calling the ToString method. a) Currency b) Exponential scientific c) Number d) Percent e) Fixed-point - Answer>> Dim strToday As String= Today ().ToString("...") a) c
that doesn't prevent application from executing because there's a mistake in the code. Ex) incorrect math statements and copying the wrong value to the variable What is a breakpoint? - Answer>> Line of code that causes a running application to pause execution and enter break mode. Used for debugging purposes. What is the purpose of single-stepping through an application? - Answer>> executing the application's code one line at a time. After each line executes, you can examine variable and property contents. Helps identify line or lines of code causing the error. In the following If..Then statement, assume that blnIsInvalid is a Boolean variable. Exactly what condition is being tested? If blnIsInvalid Then 'Do something End If - Answer>> If a specific relationship exists between the values and if the blnIsInvalid = True Do the following If..Then statements perform the same operation? If decSales > 1000 Then decCommissionRate =. End If If decSales > 1000 Then decCommissionRate =. End If - Answer>> Yes, but the first one if preferred because its indented, organized better and easier to read. Of the two If..Then statements shown in Checkpoint 4.3, which is preferred, and why? - Answer>> First because indented and easier to read intX = 0
If intX< 1 Then intY = 99 Else intY = 0 End If - Answer>> intY= 99 intX = 20. How many times will the following statement compare intX before it finds a Boolean expression that is true? If intX < 10 Then intY = 0 ElseIf intX < 20 Then intY= 1 ElseIf intX < 30 Then intY= 2 ElseIf intX < 40 Then intY= 3 Else intY = - End If - Answer>> 3 because its less than 30 intX = 5, how many times will the code assign a value to intY? If intX < 10 Then intY = 0 ElseIf intX < 20 Then intY= ElseIf intX < 30 Then intY= ElseIf intX < 40 Then intY= End If - Answer>> 1, because even though it applies to all four statements, the If..Then.. ElseIf tests until the boolean expression is true and then stops