if amt > 5000 msg = "Enough" else msg = "Low" end ifQuestion #4: Looking at the example above, if amt > 5000, what is done?
ansWork = numIn -15 numIn - 15 = ansWorkQuestion #6: True or False: ans = inv Ans + 20 is valid in programming languages such as JavaScript.
A) logic B) data C) development D) syntaxQuestion #8: Data that is stored in locations in memory are called ______________ ? An example would be storing the result of a calculation in memory.
A) alpha B) instructions C) variables D) variables and instructionsQuestion #9:When you test a compiled program/object program with data, you are looking for _______ errors?
A) syntax B) logic C) compilar D) both syntax and logic applyQuestion #10: Calculating an answer and storing it to a named memory location is using ____________ ?
A) comparison B) equal C) assignment D) compilingQuestion #10: True or False: You cannot execute a program to produce output if it has critical syntax errors.
A) string or character constant/literal B) numeric constant/literal C) variable names D) string or character or numeric constant/literalQuestion #13: The modules of the mainline logic of a typical procedural program are:
A) housekeeping, setup, initialization B) housekeeping, processing, looping C) housekeeping/setup, processing, wrapup D) setup, initializing, loopingQuestion #14: True or False: Giving a starting value to a variable is known as initializing the variable. The value in the variable can be changed as the program executes.
Question #15: Using an if statement, write the code to test amt1 being equal to 100? You can write it in JavaScript or Visual Basic.
Question #16: What are the two things the + sign can mean?
Question #17: What do the { } do in an if statement in JavaScript?
Question #18: What is the statement in JavaScript that puts the words The grade is and the result of
a calculation stored in mygrade up on the screen?
Question #19: Where do you position the test to continue or stop if you always want to do the loop at least once?
Question #20: Where do you position the test to continue or stop if you want to be able to never enter the loop?
Question #21: True of False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA AND condB must both be true or just condC must be true.
Question #22: True or False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA must always be true and in addition either condB OR condC must be true.
Question #23: True or False: ANDs are evaluated before ORs, but the order can be changed using parenthesis which means that the expression condA AND (condB OR condC) will be evaluated as condA must always be true and in addition either condB OR condC must be true.
Question #24: In the statement totAmt = totAmt + amt if the totAmt contains the value 17 and amt contains the value 24 before the statement is executed, what will totAmt be after the statement is executed. Assume you are working in JavaScript. Explain!
Question #25: A statement that gets the first input value in the program or if you are reading a file, the first record in the file is called a ____________________.