Algorithm correct answers An algorithm is a set of ordered and finite steps to solve a given
problem
Flowchart correct answers A flowchart is a graphical representation of an algorithm, which is
usually drawn using standard symbols
Decision Tables correct answers When an algorithm involves a large number of conditions,
decision tables are a more compact and readable format for presenting the algorithm
Is C# part of the .NET Framework. If so, what does it benefit from it. correct answers Yes. It
benefits from the runtime support and class libraries
What is a program? correct answers A precise and complete instructions to accomplish a task.
How many major components does the .NET Framework provide? What are they? correct
answers 1.runtime execution environment 2. a set of class libraries that provide a great deal
of reusable functionality 3. language compilers for C#, Visual Basic, and C ++
What does IDE stand for? correct answers Integrated development Environment
Is C# a case sensitive language? correct answers Yes
What does CIL stand for? What happens before it's executed? correct answers Common
Intermediate Language. It must first be translated for the architecture of the machine on
which it will run. The .NET Framework's runtime execution system takes care of this
translation behind the scenes using a process called just-in-time compilation.
What is a class? correct answers A set of data and methods
What is a namespace? correct answers Namespaces are used to organize classes and uniquely
identify them.
What do namespaces and classes combined create? correct answers A fully qualified class
name
What does the System namespace contain? correct answers Some of the most commonly used
base classes
What is the method the Program Class defines, and what's special about that method? correct
answers Main. Main is a special method in that it also serves as an entry point to the program.
What must the Main be declared as? correct answers Static
Define a variable correct answers Variables provide temporary storage during the execution
of a program, or a placeholder used to store values
, Name the conditions a variable has to meet correct answers Must begin with a letter or an
underscore and contain only letters, numbers, or underscores. A variable name must not
exceed 255 characters. A variable must be unique within the scope in which it is defined.
What is a Data Type? correct answers Data Types specify the type of data that you work with
in a program. The data type defines the size of memory needed to store the data and the kinds
of operations that can be performed on the data
Name the 9 Data Types, and their size. correct answers (1) byte 1 byte (2) char 2 bytes (3)
short 2 bytes (4) int 4 bytes (5) long 8 bytes (6) float 4 bytes (7) double 8 bytes (8) bool 2
bytes (9) string reference type
What is a reference type? correct answers the variable holds the address of the memory
location where the actual data is stored
What is an array? correct answers a collection of items in which each item can be accessed by
using a unique index
What is an Operator? correct answers symbols that specify which operation to perform on the
operands before returning a result
Describe Unary Operator correct answers Works with only one operand
Describe Binary Operators correct answers Takes two operands
Describe the Ternary Operator correct answers Ternary operators take three operands. There
is just one in C# ?:
Define a method correct answers Methods are code blocks containing a series of statements.
Methods can receive input via arguments and can return a value to the caller.
What happens when a method is called? correct answers the statements contained within the
method are executed
Define Decision Structures correct answers They enable you to branch to different sections of
the code depending on the truth value of a Boolean expression e.g. if, if-else, and switch
statements
Define If Statement correct answers Will execute a give sequence of statements only if the
corresponding Boolean expression evaluates to true
Define If-Else Statements correct answers allows your program to perform one action if the
Boolean expression evaluates to true and a different action if the Boolean expression
evaluates to false.
Define Switch Statement correct answers Allows multi-way branching.
Define While Loop correct answers repeatedly executes a block of statements until a
specified Boolean expression evaluates to false