Finalquiz Logo

Q&A Hero

  • Home
  • Plans
  • Login
  • Register
Finalquiz Logo
  • Home
  • Plans
  • Login
  • Register

Home » Programming Language » Page 19

Programming Language

Q: A(n) ____ procedure returns a value after performing its assigned task. a. Return b. Sub c. Function d. Assignment

Q: In most cases, it is better to use a function rather than a Sub procedure that passes a variable by reference.

Q: Most programmers pass a variable by reference only when a procedure needs to produce more than one result.

Q: Fewer unintentional errors occur in applications when memory locations have the maximum scope needed.

Q: Allowing more than one procedure to change the contents of a memory location can lead to subtle errors that are difficult to find, especially in large applications.

Q: When changing the Sub keyword in a header to Function, the Code Editor automatically changes the Sub keyword in the footer to the Function keyword.

Q: The statement that invokes a function will always assign the function's return value to a variable.

Q: When invoking a function, the data type and position of each argument does not need to agree with the data type and position of its corresponding parameter.

Q: You invoke a function that you create in exactly the same way as you invoke one of Visual Basic's built-in functions.

Q: After creating a function, you can invoke it from one or more places in an application's code.

Q: As is true with a Sub procedure, a function can receive information either by value or by reference.

Q: In most cases, the last statement within a function is Update expression.

Q: The ____ keyword tells the computer to pass the variable's address rather than a copy of its contents. a. ByRef b. ByVal c. ByValue d. ByLoc

Q: You pass a variable by ____ when you want the receiving procedure to change the contents of the variable. a. content b. name c. value d. reference

Q: When you pass a variable by reference, you pass its ____ in the computer's internal memory. a. value b. data c. name d. location

Q: Radio buttons and check boxes have a ____ event that occurs when the value in the control's Checked property changes. a. CheckedChanged b. TextChanged c. ChangedChecked d. TextChecked

Q: When you pass a variable by ____, the computer passes a copy of the variable's contents to the receiving procedure. a. value b. contents c. location d. reference

Q: To pass a variable by value in Visual Basic, you include the keyword ____ before the name of its corresponding parameter in the receiving procedure's parameterList. a. Val b. ByVal c. Value d. ByValue

Q: You pass a variable by ____ when the receiving procedure needs to know the variable's contents, but the receiving procedure does not need to change the contents. a. reference b. address c. value d. location

Q: Passing a variable's address is referred to as passing by ____. a. address b. value c. reference d. location

Q: A text box's ____ event occurs whenever a change is made to the contents of the text box. a. TextModified b. TextChanged c. CheckedChanged d. ChangedText

Q: The parameters in a procedure header have ____ scope, which means they can be used only by the procedure in which they are declared. a. local b. limited c. procedure d. specific

Q: Each parameter stores information that is passed to an independent Sub procedure by the ____ statement. a. Call b. Pass c. Send d. Go

Q: Unlike the procedure header, which varies with each procedure, the procedure footer for an independent Sub procedure is always ____. a. End b. End Sub c. Sub Foot d. Foot Sub

Q: ____ store the information passed to a procedure when it is invoked. a. Data stores b. Controls c. Variables d. Parameters

Q: It is a common practice to begin a procedure name with a verb and to enter the name using ____ case. a. Camel b. Hungarian c. Pascal d. Capitalized

Q: The ____ provides a code template for every event procedure. a. Code Editor b. Template Editor c. Code Template d. Template Tool

Q: When you pass a variable's address to a procedure, the computer uses the address to locate the variable in its external memory.

Q: To pass a variable by reference in Visual Basic, you include the keyword ByRef before the variable's corresponding parameter in the receiving procedure's header.

Q: A procedure-level variable is removed from the computer's memory when the procedure in which it is declared ends.

Q: When you select a check box, for example, its Checked property changes from False to True.

Q: When only a copy of the contents of a variable are passed, the receiving procedure can change the value stored inside the variable.

Q: When only the contents of a variable are passed, the receiving procedure is given access to the variable in memory.

Q: Every variable declared in an application has both a value and a unique address that represents the location of the variable in the computer's internal memory.

Q: In a sub procedure, the number of arguments in the Call statement do not have to agree with the number of parameters in the procedure list.

Q: An independent Sub procedure can contain one or more parameters in its procedure header.

Q: Each argument represents an item of information that is passed to the procedure when the procedure is invoked.

Q: You can invoke a Sub procedure using the Invoke statement.

Q: In a sub procedure, a set of parentheses that contains an optional procedure name follows the parameter list in the procedure header.

Q: Independent Sub procedures are not used extensively in large and complex programs, which typically are written by a team of programmers.

Q: You can use an independent Sub procedure to avoid duplicating code when different sections of a program need to perform the same task.

Q: An event procedure is a set of Visual Basic instructions that are processed when a specific event (such as the Click event) occurs.

Q: You can prevent the user from editing the contents of a text box by setting the text box's ____ property to True. a. Read b. ReadOnly c. Editable d. Change

Q: For the ScrollBars property to take effect, the text box's ____ property must be set to True. a. Scroll b. ScrollBars c. Manyline d. Multiline

Q: A text box's ____ property specifies whether the text can span more than one line in the control. a. ScrollBars b. Manyline c. Multiline d. Span

Q: The ____ property indicates whether any scroll bars appear on the text box. a. Scroll b. ScrollBar c. ViewScroll d. ScrollBars

Q: A text box can have ____, which allow you to view any information not currently showing in the control. a. scroll bars b. view bars c. scroll handles d. highlight bars

Q: To pause program execution for a half of a second, type ____. a. System.Threading.Sleep(500) b. System.Threading.Thread.Sleep(500) c. System.Threading.Sleep(1000) d. System.Threading.Thread.Sleep(1000)

Q: To display minutes values from 0 through 5 type the following: ____. a. For MinutesInt As Integer = 0 To 5 b. For intgMinutes As Integer = 0 To 5 c. For intMinutes As Integer = 0 To 5 d. For Minutes As Integer = 0 To 5

Q: In the Clock Solution, the ____ and Sleep methods are required so that you can view each of the minute and second values in the interface. a. Show b. Renew c. Display d. Refresh

Q: In the Clock application, you have a(n) ____ loop display the number of seconds. a. outer b. control c. nested d. subordinate

Q: In the Clock application, you have a(n) ____ loop display the number of minutes. a. outer b. control c. nested d. master

Q: In the Clock application, the Start button's ____ event procedure contains the loops. a. Click b. Open c. Select d. Run

Q: When writing a clock application, the second hand on a clock is controlled by the ____ loop. a. subordinate b. outer c. control d. inner

Q: When writing a clock application, the minute hand on a clock is controlled by the ____ loop. a. subordinate b. outer c. control d. inner

Q: A programmer determines whether a problem's solution requires a nested loop by studying the problem ____. a. specification b. syntax c. control d. resource allocation

Q: ____ means that you can place one repetition structure entirely within another repetition structure. a. Encasing b. Subordinating c. Nesting d. Folding

Q: You can prevent the user from editing the contents of a text box by setting the text box's Editable property to False.

Q: Users can edit the contents of a label control while the application is running.

Q: For a text box to contain scroll bars, its Multiline property must be set to True.

Q: The ScrollBars property indicates whether the text box has no scroll bars, a horizontal scroll bar, a vertical scroll bar, or both horizontal and vertical scroll bars.

Q: To include scroll bars on a text box, you need to change the ScrollBar property's setting from None to either Horizontal or Vertical.

Q: For a text box to include scroll bars, its ScrollBars and Multiline properties must be set appropriately.

Q: A label control can have a scroll bar.

Q: A text box can only display a limited amount of information.

Q: To display minute values from 0 through 9 use the following syntax: for intMinutes = 0 to 9.

Q: In the clock application, the entire nested loop must be contained within the outer loop in order to work properly.

Q: A clock uses nested repetition structures to keep track of the time.

Q: A programmer determines whether a problem's solution requires a nested loop by studying the code.

Q: When nesting loops, both repetition structures must be pretest loops.

Q: Like selection structures, repetition structures can be nested.

Q: Nested loops occurs when one loop is placed immediately after another loop.

Q: The Enter key on your keyboard is represented by the ____ constant. a. ControlChars.NextLine b. ControlChars.NewLine c. ControlChars.SpaceLine d. ControlChars.EnterLine

Q: You connect or link strings using the ____ operator, which is the ampersand (&). a. join b. connect c. concatenation d. link

Q: The ____ operator reverses the sign of a number. a. sign change b. change c. sign d. negation

Q: The ____ method contains a complex mathematical formula for calculating a periodic payment. a. Fincl.Pmt b. Financial.Pmt c. Fin.Pmt d. Fin.Payment

Q: Visual Basic's ____ feature exposes a set of commonly used objects to the programmer. a. Obj b. My c. MyObj d. ComObj

Q: To have an application play an audio file while it is running, you use the syntax ____. a. My.Computer.Play(fileName) b. Play(filename) c. My.Computer.Audio.Play(fileName) d. fileName.Play

Q: The ____ object refers to your computer. a. This.Computer b. My.ComputerObject c. Local.Computer d. My.Computer

Q: Fewer unintentional errors occur in applications when the variables are declared using the ____ scope needed. a. broadest c. minimum b. most open d. maximum c. minimum d. maximum

1 2 3 … 30 Next »

Subjects

Accounting Anthropology Archaeology Art History Banking Biology & Life Science Business Business Communication Business Development Business Ethics Business Law Chemistry Communication Computer Science Counseling Criminal Law Curriculum & Instruction Design Earth Science Economic Education Engineering Finance History & Theory Humanities Human Resource International Business Investments & Securities Journalism Law Management Marketing Medicine Medicine & Health Science Nursing Philosophy Physic Psychology Real Estate Science Social Science Sociology Special Education Speech Visual Arts
Links
  • Contact Us
  • Privacy
  • Term of Service
  • Copyright Inquiry
  • Sitemap
Business
  • Finance
  • Accounting
  • Marketing
  • Human Resource
  • Marketing
Education
  • Mathematic
  • Engineering
  • Nursing
  • Nursing
  • Tax Law
Social Science
  • Criminal Law
  • Philosophy
  • Psychology
  • Humanities
  • Speech

Copyright 2025 FinalQuiz.com. All Rights Reserved