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. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
Object
uint - .NET alias
Inheritance
2. Represents the encapsulation of data and behaviors into a single unit.
Framework Class Library (FCL)
Class
Expression
Int64 - Size
3. 8 bit - unsigned byte (0 - 255)
Constructor
Expression
Array
byte - Size
4. Variables defined by a class
Console Application
ushort - .NET alias
Sealed Class
Field
5. Just-in-time compilation
Static Class
Polymorphism
JIT
csc.exe
6. 16 bit - signed integer data (-32768 to 32767)
Abstract Method Modifier
JITer
short - Size
Variable (C# requirements)
7. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Common Language Runtime (CLR)
Array
double - .NET alias
Console Application
8. System.UInt32
uint - .NET alias
sbyte - .NET alias
int - .NET alias
C#
9. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
Derived Class
JITer
String (or string)
IDE
10. Groups classes together so that they have a unique identifier
Relational Operator
Precedence
Common Language Runtime (CLR)
Namespace
11. A method that is called whenever an Object is created. The method uses the same name as the Class.
Constructor
FCL
Abstract Method Modifier
Assignment Operator
12. 64 bit - unsigned integer data
Window.xaml.cs
ulong - Size
Assignment Operator
Boolean - Size
13. 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
JIT
Heap
W.P.F
Properties
14. (&& or || or & or |)
FCL
Abstract Method Modifier
returnType methodName (parameterList)
Conditional Operator
15. Syntax of a C# Method
returnType methodName (parameterList)
Primitive Type
Abstraction
References (Visual Studio Solution
16. 32 bit - unsigned integer data
uint - Size
Statement
long - .NET alias
Class Statement
17. Framework Class Library
FCL
Comments
Private Access Modifier
Heap
18. Allow access to types that exist in outside assemblies.
Relational Operator
Overloaded Method
References (Visual Studio Solution
Field
19. System.Int32
int - .NET alias
Class
Window.xaml.cs
Data structures
20. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Method
sbyte - Size
Variable (C# requirements)
bool - Size
21. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
IDE
Assembly
Abstraction
Method
22. 16 bit- unsigned word (U+0000 to U+ffff)
Expression
Data structures
If Statement
char - Size
23. A Class that can only have Static Members
Constructor
Static Class
Expression
Operator
24. (== or !=)
Value Type
Class Statement
Equality Operator
Abstract Method Modifier
25. A Class that cannot be Inherited
Sealed Class
NET
Assembly
double - .NET alias
26. System.Single
Static Class
float - .NET alias
int - Size
Data structures
27. Code which signifies a carriage return. Symbolises a new line in a text box.
Textbox
CLR
sbyte - Size
r
28. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Inheritance
using
long - .NET alias
Properties
29. 8 bit - signed byte (-128 - 127)
sbyte - Size
Inheritance
using
Overloaded Method
30. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Console Application
sbyte - .NET alias
Incrementing / Decrementing Variables
Precedence
31. Access is limited to the current Assembly and Derived Types
Object
Protected Internal Access Modifier
Variable (C# requirements)
Inheritance
32. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Virtual Method Modifier
Namespace
csc.exe
Properties
33. Container for one or more Visual Studio Projects.
returnType methodName (parameterList)
Protected Internal Access Modifier
ushort - .NET alias
Visual Studio Solution
34. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does
Float (or float) - Size
Base Class
Virtual Method Modifier
Object
35. true or false
bool - Size
While Statement
NET
Common Language Runtime (CLR)
36. Text as Unicode characters
Dot Notation
csc.exe
Framework Class Library (FCL)
String (or string)
37. The member type of a Class that performs an action.
Derived Class
Virtual Method Modifier
Unary Operator
Method
38. The "Type" name of data that is stored on the Stack
Value Type
Stack
Array
Abstract Method Modifier
39. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Assembly
Expression
Visual Studio Solution
Properties
40. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
While Statement
Inheritance
Intermediate Language (IL)
Object
41. Something that has a different number of parameters to it's predecessor
Inheritance
Variable
Overloaded Method
Namespace
42. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Intermediate Language (IL)
Statement
Sealed Class
Constant
43. Mathematical (+ or - or / or %)
Operator
Field
Properties
Int32 - Size
44. A type of statement that produces a value that might be tested or assigned to a variable.
Object
Int32 - Size
sbyte - .NET alias
Expression
45. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Abstract Class Modifier
Expression
ulong - Size
double - .NET alias
46. Code which implements GUI (graphical User Interface).
Data structures
bool - Size
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Assembly
47. System.Int16
byte - .NET alias
short - .NET alias
Virtual Method Modifier
Static Class
48. 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.
Abstraction
Constant
Method
Syntax
49. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.
sbyte - .NET alias
Parameter aka Argument
Primitive Type
Identifiers
50. Field whose value can never change. Declared with 'const' keyword
Constant
Class Statement
Class aka Type
Partial Method Modifier