COMPROG TEST REVIEWER
COMPROG TEST REVIEWER
11. On-Page Connec- Connects flowchart elements on the same page for identification.
tor
20. Compile time er- Syntax and static semantic errors indicated by the compiler.
rors
21. Runtime errors Dynamic semantic and logical errors not detected by the compiler.
26. Common Data Types like int, double, string, and bool for data storage.
Types
29. Strong Typing C# enforces strict type checking, reducing the likelihood of runtime errors.
2/6
COMPROGNO1
Study online at https://quizlet.com/_f2lfdj
32. Platform Inde- C# code can be compiled to run on different platforms, thanks to the .NET frame-
pendence work's cross-platform capabilities.
34. Double Used for floating-point numbers with decimal places (e.g., 3.14, -0.5).
35. string Used for text and characters (e.g., "Hello, World!")
37. Declaring a vari- means defining its name and data type.
able
39. Basic input/out- essential for interacting with a program. We'll use Console.WriteLine() to display
put (I/O output and Console.ReadLine() to receive input from the user.
40. if statements are used to execute a block of code only if a specified condition is true.
41. if-else state- allow you to specify two blocks of code: one to execute when a condition is true
ments and another when the condition is false.
42. Nested if state- involve placing one if statement inside another. They allow you to create complex
ments conditional logic.
43. Switch statement are used when you have multiple choices and need to execute different code based
on the value of an expression.
45. do-while loop Similar to the while loop but guarantees at least one execution.
3/6
COMPROGNO1
Study online at https://quizlet.com/_f2lfdj
46. for loop Iterates over a sequence of values for a specified number of times.
47. Loops are invaluable for automating tasks that require repetitive execution, such as
processing data, counting, or iterating through collections.
48. Loop control allow you to modify the normal execution of loops. Two common control state-
statements ments are:
50. Continue Skips the current iteration and moves to the next iteration.
51. Array data structure that allows you to store multiple values of the same data type in a
single variable.
52. Array elements are accessed using an index, which is enclosed in square brackets [].
53. Index starts at 0 for the first element and goes up to length - 1 for an array of length.
55. Function involves specifying its name, parameters, and code block. Functions are created to
encapsulate specific tasks.
56. Calling a function executes its code block at a specific point in your program.
57. Parameters allow you to pass information into a function. Parameters are defined within
parentheses.
58. Return values are values that a function can provide as output when it finishes executing.
4/6
COMPROGNO1
Study online at https://quizlet.com/_f2lfdj
60. Method over- allows defining multiple methods with the same name but different parameters
loading within the same class.
61. Variable scope defines where in a program a variable can be accessed, while lifetime refers to how
long a variable exists during program execution.
63. Local Variables Scoped within a method and accessible only within that method.
64. Global Variables Scoped at a broader level and accessible throughout the class or program.
65. Lifetime Refers to the duration for which a variable exists in memory.
66. Local Variables Created when the method is called and destroyed when the method exits.
68. Exception han- is a crucial aspect of programming that enables the detection and management
dling of errors that may occur during program execution.
71. Finally Optional block for code that should execute regardless of whether an exception
was thrown or not.
72. System.Excep- The base class for all exceptions in C. Other exception types derive from this class.
tion
5/6
COMPROGNO1
Study online at https://quizlet.com/_f2lfdj
System.Divide-
ByZeroException
75. System.NullRefer- Occurs when trying to access a member on a null object reference.
enceException
6/6