Finalquiz Logo

Q&A Hero

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

Home » Programming Language » Page 22

Programming Language

Q: The instructions in the true path of a nested structure should not be indented within the inner selection structure.

Q: When only one decision needs to be made, it does not require a nested selection structure.

Q: You cannot use a nested selection structure when more than one decision must be made before the appropriate action can be taken.

Q: Only one path in a selection structure can include other selection structures.

Q: Only one path in a selection structure can include instructions that declare variables, perform calculations, and so on.

Q: You use the selection structure to make a decision and then select the appropriate patheither the true path or the false pathbased on the result.

Q: During run time, you can determine whether a check box is selected or unselected by looking at the value in its Checked property.

Q: In Windows applications, check boxes provide one or more independent and nonexclusive items from which the user can choose.

Q: The two flowlines leading out of a diamond should be marked so that anyone reading the flowchart can distinguish the true path from the false path.

Q: The oval in a flowchart is called the selection/repetition symbol.

Q: Arithmetic operators are evaluated after any comparison operators in an expression.

Q: Comparison operators in Visual Basic do not have an order of precedence.

Q: Items in square brackets are required in the syntax of an algorithm.

Q: Selection structures that contain instructions in the true path and the false path are referred to as double-alternative selection structures.

Q: The selection structure is referred to as a single-alternative selection structure because it requires one or more actions to be taken only when its condition evaluates to true.

Q: A programmer determines whether a problem's solution requires a selection structure by studying the problem specification.

Q: Many times the next instruction processed depends on the result of a decision that must be made.

Q: A variable declared within a statement block is called a ____. a. block-level variable b. restricted variable c. contained variable d. simple variable

Q: A variable that has ____ scope can be used only within the statement block in which it is declared. a. global b. procedure c. internal d. block

Q: A variable that has ____ scope can be used anywhere within the procedure. a. global b. procedure c. internal d. block

Q: In a flowchart, a(n) ____ represents the condition in a selection structure. a. parallelogram b. rectangle c. diamond d. oval

Q: The Text property of a check box should be entered using ____. a. all lowercase letters b. all uppercase letters c. sentence capitalization d. book capitalization

Q: The ____ in a flowchart is called the decision symbol. a. parallelogram b. rectangle c. diamond d. oval

Q: The ____ in a flowchart is the input/output symbol. a. parallelogram b. rectangle c. diamond d. oval

Q: The ____ in a flowchart is the process symbol. a. parallelogram b. rectangle c. diamond d. oval

Q: The ____ in a flowchart is the start/stop symbol. a. parallelogram b. rectangle c. diamond d. oval

Q: The instructions in the true path are processed only when the condition evaluates to ____. a. greater than b. True c. equal to d. False

Q: Operators are called ____ operators because they are used to compare values. a. test b. comparison c. change d. binary

Q: The set of statements contained in the true path, as well as the set of statements contained in the false path, is referred to as a(n) ____. a. statement block b. conditional block c. executable code block d. path block

Q: In the If…Then…Else statement, the condition must be a(n) ____ expression. a.arithmeticb.conditional c.constantd.Boolean

Q: In the If…Then…Else statement, the programmer must supply the ____ that the computer needs to evaluate before further processing can occur. a.conditionb.execution c.orderd.path

Q: The ____ structure makes a decision and then takes an appropriate action based on that decision. a. loop b. condition c. selection d. case

Q: More unintentional errors occur in applications when the variables are declared using the minimum scope needed.

Q: Although there is nothing wrong with declaring all variables at the beginning of a procedure, many programmers would prefer to create a variable only if it is necessary to do so.

Q: Unlike variables declared at the beginning of a procedure, variables declared within a statement block have block scope rather than procedure scope.

Q: Unlike the variables declared at the beginning of a procedure, variables declared within a statement block in a selection structure remain in memory until the procedure ends.

Q: An expression that attempts to divide a value by the number 0 will result in a ____ error. a. syntax b. logic c. run time d. sequence

Q: You can use a ____ to pause execution at a specific line in the code. a. comment b. breakpoint c. function header d. wait

Q: While stepping through a program in the debugger, the ____ statements are skipped over because they are not considered executable by the debugger. a. If b. Next c. For d. Dim

Q: When debugging, to execute the highlighted instruction, you can use either the Debug menu's Step Into option or the ____ key on your keyboard. a. F2 b. F6 c. F8 d. F12

Q: Entering instructions in the wrong order in a program can cause a ____ error. a. logic b. sequential c. function d. composition

Q: A ____ error can occur for a variety of reasons, such as forgetting to enter an instruction or entering the instructions in the wrong order. a. syntax b. function c. computer d. logic

Q: In the Error List window, ____ indicate that the Code Editor has some suggestions for fixing the errors. a. red jagged lines b. blue jagged lines c. red rectangles d. blue triangles

Q: The ____ window provides a description of each error and the location of each error in the code. a. Code b. Error List c. Project d. Solution

Q: In the Code Editor window, the ____ alert you that three lines of code contain a syntax error. a. jagged red lines b. thin blue boxes c. thick red boxes d. jagged blue lines

Q: Most syntax errors are a result of ____ errors that occur when entering instructions. a. typing b. automatic c. computer d. system

Q: A ____ error occurs when you break one of the language's rules. a. compiler b. linking c. syntax d. logic

Q: The set of rules you must follow when using a programming language is called the language's ____. a. syntax b. rules c. order d. object

Q: Program bugs are typically categorized as syntax errors, logic errors, or ____ errors. a. debug b. run time c. compiler d. program

Q: The process of locating and correcting any bugs in a program is called ____. a. exterminating b. debugging c. compiling d. linking

Q: An error in a program's code is referred to as a ____. a. feature b. function c. mental exercise d. bug

Q: A run time error is an error that occurs while an application is running.

Q: Stepping through code one line at a time is the only way to search for logic errors.

Q: The letter D indicates that the data type of the variable's value is Decimal.

Q: When debugging, while the execution of a procedure's code is paused, you can view the contents of controls and variables that appear in the highlighted statement, as well as in the statements above it in the procedure.

Q: Some logic errors occur as a result of calculation statements that are correct syntactically, but incorrect mathematically.

Q: Unlike logic errors, syntax errors are much more difficult to find because they do not trigger an error message from the Code Editor.

Q: The Error List window displays a red rectangle next to each error in the code.

Q: The Code Editor detects most syntax errors as you enter the instructions.

Q: Logic errors are the easiest to find.

Q: Program bugs typically are caused by either syntax errors or logic errors.

Q: As the amount of code increases, so does the likelihood for errors.

Q: One advantage of variables and named constants is that their use requires fewer lines of code.

Q: You can use variables to store the values of processing items, which do not appear in a user interface.

Q: Both constant and variable memory locations make your code more self-documenting and easier to understand.

Q: You can only use variable memory locations to control the data type of numbers used in calculations.

Q: The format specifier ____ does not include a dollar sign, and negative values are preceded by a minus sign. a. C or c b. N or n c. F or f d. P or p

Q: You can format a number using the syntax ____. a. numericVariableName.ToString(formatString) b. formatString.ToString(numericVariableName) c. ToString.numericVariableName(formatString) d. numericVariableName.formatString(ToString)

Q: A ____ is text that is enclosed in double quotation marks. a. word b. character list c. word array d. string

Q: Specifying the number of decimal places and the special characters to display in a number is called ____. a. describing b. controlling c. formatting d. highlighting

Q: You create a named constant using the ____ statement. a. NamedC b. Const c. NConst d. NoAlter

Q: A ____ is a memory location whose value cannot change while the application is running. a. named constant b. variable c. predefined variable d. touched variable

Q: Programmers refer to the length of time a variable remains in memory as its ____. a. size b. depth c. usefulness d. lifetime

Q: ____ refers to the area where a variable is recognized in an application's code. a. Scope b. Field of view c. Blocking d. Object control

Q: A procedure-level variable has ____ scope. a. program b. procedure c. variable d. Boolean

Q: The basic syntax of the TryParse method is ____. a. TryParse(text, numericVariableName) dataType b. TryParse(text, numericVariableName) c. dataType.TryParse(text, numericVariableName) d. dataType TryParse text, numericVariableName

Q: To declare a variable in an event procedure, where most variables are declared, you use the Visual Basic ____ statement. a. Sub b. New c. Create d. Dim

Q: Memory locations are called ____ because their contents can change (vary) as the program is running. a. variables b. invariables c. constants d. parameters

Q: When you start an application, each program instruction is placed in a ____, where it awaits processing. a. hard core b. memory location c. register d. processor

Q: A ____ is a value that can be True or False. a. Truth b. Boolean value c. Dim d. Scope

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