INMT 443 Midterm Exam Questions and
Answers
What is the definition of an algorithm - Answer-A procedure or formula for solving a problem, based on
conducting a series of specified action. Often expressed as algorithm = logic + control or as controlled
logical deduction
Algorithms + data = - Answer-Programs or applications or apps
What are the 3 constructs of an algorithm - Answer-1) Sequence: Step in the algorithm executed in a
specified order (always ran)
2) Decision: Block of code that "might be ran 0 or 1 times" depending on outcome when tested.
3) Repetition: Block of code within the decision block are executed 0 to many or 1 to many depending
on outcome of condition tested.
Explain the main logical operators:
-And
-Or
-Not
-Xor
-Is, Is not
, -In, Not In
-Like - Answer-And: All conditions are true
Or: Atleast 1 condition is true
Not: True when the condition tested is false
Xor: One and only one of the conditions is true
Is, Is not: used to check reference types
In, Not in: used to check if values are matched
Like: Used to search for a specific pattern
Explain the operator, Between - Answer-Depends on programming language used. Some will include
boundaries while some will exclude
Explain the difference in "False" and FALSE - Answer-"False" is a string while FALSE is Boolean
Explain the difference in a system value vs a formatted value - Answer-System Value: what computer
see and reads
Formatted Value: what user sees
Explain a nested if - Answer-If the condition is true, do this. Else let's test a new if.
With a nested if, if there are ___ "ifs" or decisions, how many outcomes are there. - Answer-____ + 1.
There will be 1 more outcome than there are ifs
What is Debugging - Answer-Identifying and removing errors
What is a prototype - Answer-Early version of a product
Answers
What is the definition of an algorithm - Answer-A procedure or formula for solving a problem, based on
conducting a series of specified action. Often expressed as algorithm = logic + control or as controlled
logical deduction
Algorithms + data = - Answer-Programs or applications or apps
What are the 3 constructs of an algorithm - Answer-1) Sequence: Step in the algorithm executed in a
specified order (always ran)
2) Decision: Block of code that "might be ran 0 or 1 times" depending on outcome when tested.
3) Repetition: Block of code within the decision block are executed 0 to many or 1 to many depending
on outcome of condition tested.
Explain the main logical operators:
-And
-Or
-Not
-Xor
-Is, Is not
, -In, Not In
-Like - Answer-And: All conditions are true
Or: Atleast 1 condition is true
Not: True when the condition tested is false
Xor: One and only one of the conditions is true
Is, Is not: used to check reference types
In, Not in: used to check if values are matched
Like: Used to search for a specific pattern
Explain the operator, Between - Answer-Depends on programming language used. Some will include
boundaries while some will exclude
Explain the difference in "False" and FALSE - Answer-"False" is a string while FALSE is Boolean
Explain the difference in a system value vs a formatted value - Answer-System Value: what computer
see and reads
Formatted Value: what user sees
Explain a nested if - Answer-If the condition is true, do this. Else let's test a new if.
With a nested if, if there are ___ "ifs" or decisions, how many outcomes are there. - Answer-____ + 1.
There will be 1 more outcome than there are ifs
What is Debugging - Answer-Identifying and removing errors
What is a prototype - Answer-Early version of a product