You are on page 1of 2

Test I. Identifying the C# Programming Constructs.

● Console – is a window which users can interact with in a system program.


● I/O statement – is used for user and computer interaction.
● Concatenation- means combining two string or text. Use positive “+” sign operator to
concatenate two strings.
● Variable- is a programmer-defined word that holds the value of the user.
● Constant- is an expression with a fixed value that cannot be changed at runtime.
● Literals- used as particular values within the source code of a program.
● Data types- in C# can be categorized as value, reference, and pointer data types.
● Error messages using the standard stream Console.Error.
● Console.Read/ReadLine- is a method to read all the basic types.
● Console.Write/WriteLine- method that can print all basic types.

Test II. Identifying the correct data type as Value, Reference, or Pointers.
● Value Data types:
○ bool
○ byte
○ char
○ decimal
○ double
○ float
○ int
○ long
○ Sbyte
○ Short
○ Uint
○ Ulong
○ Ushort
● Reference Data Type
○ object
○ str
○ string
○ Dynamic
● Pointers Data Type
○ char*
○ cptr
○ int*
○ Iptr

Test III. Giving the Correct character of C# Constant


● Character Constant in C#
○ Escape code Description
○ \n Newline
○ \r carriage return
○ \t tab
○ \v vertical tab
○ \b backspace
○ \f form feed(page feed)
○ \a alert(beep)
○ \’ single quote(‘)
○ \” double quote(“)
○ \? question mark(?)
○ \\ Backlash(\)

Test IV. Writing the Correct Logical Value.


● Logical Values
○ Operator Meaning
○ && logical AND
○ || logical OR
○ ! logical NOT
○ & bitwise logical AND
○ | bitwise logical OR
○ ^ bitwise logical exclusive OR

Test V. Giving the Correct Operator


● Assignment Operator
○ Symbol Operator
○ = Assignment
○ += Add AND
○ -= Subtract AND
○ *= Multiply AND
○ /= Divide AND
○ %= Modulus AND
● Arithmetic Operator
○ Symbol Operator
○ + Addition
○ - Subtraction
○ * Multiplication
○ / Division
○ % Modulus
○ ++ Increment
○ -- Decrement
● Relational Operator
○ Symbol Operator
○ != Not equal to
○ > Greater than
○ < Less than
○ >= Greater than or equal to
○ <= Less than or equal to

● Logical operator(Go back to test IV)

You might also like