CNIT 34010 Final Exam Questions and Answers Rated A+
CNIT 34010 Final Exam Questions and Answers Rated A+ While loop Perform code while a condition is true Until loop Perform code until a condition becomes true For loop Perform code once for each item in a list Select loop List a set of choices from which the user makes a selection Nesting of Loops Placement of a loop in the code block of another loop T/F: There is a limit on how many layers you can nest F T/F: Any loop type can be nested in itself or any other loop type T While loop syntax while<condition> do <command block> Done While function Repeat until <condition> is not true Until loop syntax until<condition> do <command block> done Until function Repeat until <condition> becomes true or repeat command until it returns 0 For loop syntax for VARIABLE in <set> do <command block> done <set> A horizontal space delimited list of values Seq An external program that creates a sequence of space delimited values Seq syntax seq <first> <step> <last> Break Breaking out of a loop. Always required with a select loop. Continue Skipping to the next value early. Stop processing the code block and go to the next value if one exists. Regular Characters Numbers, upper and lower-case letters, spaces and the underscore Meta Characters (wildcards) Have special meaning inside the regular expression Expanded to match regular characters /the/ Matches anything that starts with "the" /the / Only matches the word "the" . Matches a single character /r./ Matches r followed by any character / ... / Matches any three character word * Matches zero or more of the previous character /X*/ Matches zero or more of the character "X" /XX*/
Written for
- Institution
- CNIT 34010
- Course
- CNIT 34010
Document information
- Uploaded on
- January 30, 2024
- Number of pages
- 16
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cnit 34010 final exam questions and answers rated
Document also available in package deal