SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
C# Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. System.Decimal
decimal - .NET alias
Common Language Runtime (CLR)
Statement
Equality Operator
2. Field whose value can never change. Declared with 'const' keyword
JIT
Label
Constant
Inheritance
3. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
JIT
Double (or double) - Size
csc.exe
Namespace
4. 32 bit - unsigned integer data
C#
FCL
Assembly
uint - Size
5. 64 bit integer data
Method
sbyte - Size
long - Size
Partial Class Modifier
6. Names reserved by the compiler that coders are not allowed to use as identifiers.
Double (or double) - Size
Textbox
Assembly
Keyword
7. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
using
Inheritance
Relational Operator
Intermediate Language (IL)
8. System.Int16
short - .NET alias
csc.exe
Value Type
Label
9. System.Char
Private Access Modifier
char - .NET alias
uint - .NET alias
csc.exe
10. Syntax of a C# Method
Syntax
short - Size
returnType methodName (parameterList)
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
11. The .NET run-time environment that enables code to be compiled and executed.
uint - .NET alias
Console Application
Decimal (or decimal) - Size
Common Language Runtime (CLR)
12. System.Int32
Namespace
int - .NET alias
Int64 - Size
Properties
13. System.Single
float - .NET alias
DateTime
Relational Operator
FCL
14. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Precedence
char - Size
FCL
Variable
15. Symbols which transform and combine expressions
uint - Size
Window.xaml.cs
Intermediate Language (IL)
Operator
16. A symbol that specifies an operation to be performed on one or more variables.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Operator
Visual Studio Solution
Class Statement
17. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
Strong Typing
DateTime
Primitive
Namespace
18. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Operator
Program
Abstract Class Modifier
Precedence
19. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Decimal (or decimal) - Size
Method
Statement
Expression
20. Command Language Runtime
NET
csc.exe
bool - Size
CLR
21. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
short - .NET alias
Class Statement
Primitive Type
22. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
byte - Size
using
uint - Size
Parameter aka Argument
23. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory
Heap
Class
Encapsulation
Base Class
24. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Namespace
int - Size
Strong Typing
Inheritance
25. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class
uint - Size
Dot Notation
Encapsulation
Incrementing / Decrementing Variables
26. Represents the encapsulation of data and behaviors into a single unit.
Namespace
short - .NET alias
Unary Operator
Class
27. A Class that inherits characteristics from another Class.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Constructor
Variable
Derived Class
28. When a sub class passes down all the behaviours of the original parent class
char - .NET alias
Inheritance
ulong - .NET alias
Object
29. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.
Object
int - Size
Encapsulation
Statement
30. System.UInt32
uint - .NET alias
Constant
Stack
short - Size
31. 128 bit fixed precision (financial)
byte - Size
Decimal (or decimal) - Size
Sealed Class
sbyte - .NET alias
32. Most common kind of reference type. They define objects. They must have at least one method and one field.
Namespace
Method
Strong Typing
Class aka Type
33. A Class that can only have Static Members
Method
Operator
long - Size
Static Class
34. Mathematical (+ or - or / or %)
Constant
Operator
Syntax
sbyte - .NET alias
35. Code which signifies a carriage return. Symbolises a new line in a text box.
r
References (Visual Studio Solution
Namespace
Partial Class Modifier
36. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
ulong - Size
Encapsulation
Equality Operator
37. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Partial Method Modifier
Array
Heap
If Statement
38. Keyword which exposes members to other classes OR Identifier which makes program elements public
Expression
Decimal (or decimal) - Size
Public Keyword
IDE
39. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
Partial Method Modifier
Intermediate Language (IL)
JITer
NET
40. (= or += or -= or = or /=)
Method
Protected Internal Access Modifier
Assignment Operator
Conditional Operator
41. The member type of a Class that performs an action.
Variable (C# requirements)
Method
Statement
Assignment Operator
42. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Reference Type
Expression
Constant
Partial Method Modifier
43. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.
Inheritance
decimal - .NET alias
Textbox
Syntax
44. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.
Internal Access Modifier
DateTime
Encapsulation
Syntax
45. Restricts access to a Member to the current Class and any Derived Class.
Protected Access Modifier
Object
Identifiers
Inheritance
46. The process of compiling IL source into CPU-native code for execution.
Just-in-time (JIT
Incrementing / Decrementing Variables
byte - .NET alias
Abstract Class Modifier
47. Access is limited to the current Assembly and Derived Types
Protected Internal Access Modifier
Dot Notation
byte - Size
Field
48. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Console Application
Statement
Assembly
Assignment Operator
49. Variables defined by a class
Common Language Runtime (CLR)
Inheritance
Field
Int32 - Size
50. Command which runs repeatedly while (some) condition is true.
Common Language Runtime (CLR)
Syntax
While Statement
byte - .NET alias