Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
37 Cards in this Set
- Front
- Back
(AS1) T/F? Identifiers are descriptive names that are mapped to locations in the computer’s memory.
|
TRUE
|
|
(AS1) T/F? There are three kinds of identifiers: variables, integers, and constants.
|
FALSE
|
|
(AS1) What is the phase in the software development lifecycle that ensures that the program meets the needs of the customer?
|
Test and Deploy
|
|
(AS1) What is the phase in the software development lifecycle that determines what the program will do?
|
Requirements
|
|
(AS1) What is the phase in the software development lifecycle that fixes bugs and adds features?
|
Support
|
|
(AS1) What is the maintenance category that corrects latent faults before they become actual faults?
|
Preventive Maintenance
|
|
(AS1) What is the maintenance category that keeps a program viable in a changing environment?
|
Adaptive Maintenance
|
|
(AS1) What is the level of testing performed by the programmer while writing code?
|
Level 1
|
|
(AS1) Evaluate the expression: 15 + (25 – 6 % 4) * 12 – 3 + 2 ^ 7
|
416
|
|
(AS1) What tool is a detailed, yet reliable description of what the program must do?
|
Pseudocode
|
|
(AS1) What is the method of programming that has all required code in a single file?
|
Unstructured Programming
|
|
(AS1) What is the method of programming that introduces procedures and parameters allowing programs to be written in a more structured manner with fewer lines of code?
|
Procedural Programming
|
|
(AS1) What is the tool used to create an executable from a second generation language source code?
|
Assembler
|
|
(AS1) T/F? An object is an instance of a class.
|
TRUE
|
|
(AS1) What are the components of an object?
|
Attributes and Behaviors
|
|
(AS1) In computer programming, a zero is typically considered a logical __________ where a non-zero value will be evaluated as a logical __________.
|
False; True
|
|
(AS1) What is an informal language that helps a programmer develop an algorithm and program design?
|
Pseudocode
|
|
(AS1) What causes a set of statements to be executed repeatedly?
|
Loop
|
|
(AS1) What groups statements that provide a single logical operation?
|
Subprogram
|
|
(AS1) What is a series of statements executed one after the other?
|
Sequence
|
|
(AS1) What alters the flow of control when a choice needs to be made between two or more actions?
|
Selection
|
|
(AS2) What is the following batch script command doing: for /L %%z in (1, 4, 240) do ping 10.90.117.%%z
|
performing a ping sweep that will ping every fourth host from address 10.90.117.1 through 10.90.117.240
|
|
(AS2) List four ways to use the set command. Describe each
|
1. Set (privides a listing of all variables and their current value) 2. Set name=value (assigns a value to a variable) 3. Set /p name=Enter your name (/p for prompt, user responds to a prompt for information. Data from standard input is assigned to a variable) 4. Set /a sum=%num% + %num2% (/a for arithmetic, does a calculation and assignes the result to a variable)
|
|
(AS2) List four redirection operations. Describe each
|
1. > (the write redirection operator. Will overwrite a file if it already exists or create it if it doesn’t exist) 2. >> (the append redirection operator. Will append the output information to an existing file or will create a new one if it doesn’t exist) 3. =< (the read redirection operator. Will read data from a file as an input to a command) 4. | (the pipe redirection operator. Uses the output of one command as the input for the next)
|
|
(AS2) What is the difference between start and call?
|
Start will run a file in a new cmd window; call will run a file in the current cmd window
|
|
(AS2) Why is it OK to use a GOTO in Windows batch scripting, but not in other programming languages?
|
Windows batch scripting has no While or Until loop. GOTO allows users to simulate these loop structures
|
|
(AS2) For the following command, what does Windows do with file1.txt? c:\>fileproc.bat file1.txt
|
It is stored in %1. All command line arguments are stored in %1-%9 in the order listed.
|
|
(AS3) Which of the following identifiers are legal? a. Name b. Name1 c. 1Name d. Name 1 e. 1 Name f. Name_1 g. 1_Name h. Name-1 i. 1-Name
|
a, b, and f
|
|
(AS3) Write two lines of code to calculate the total cost of an item that has a price of $5.64 with a 6% tax.
|
float price=5.64, tax=.06, total; total=price*tax;
|
|
(AS3) What does the following symbol represent: { }
|
Braces - Defines a block of code
|
|
(AS3) What does the following symbol represent: /* */
|
Comment – Tells the compiler to ignore the text as a comment to the programmer
|
|
(AS3) What does the following symbol represent: =
|
Assignment Operator – Assigns a value on the right to the identifier on the left
|
|
(AS3) What does the following symbol represent: %d
|
Conversion Specifier – Tells printf or scanf what type of data it is working with
|
|
(AS3) What does the following symbol represent: &
|
Address Operator – Gets the address of the variable
|
|
(AS4) What are the two equivalency operators and their meaning?
|
1. != - not equal to 2. == - equal to
|
|
(AS4) What are the four comparison operators and their meaning?
|
1. <- less than 2. > - greater than 3. <= - less than or equal to 4. >= - greater than or equal to
|
|
(AS4) What are the three logical operators and their meaning?
|
1. ! – logical NOT 2. && - logical AND 3. || - logical OR
|