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. Text as Unicode characters
Field
Partial Class Modifier
References (Visual Studio Solution
String (or string)
2. Represents date and time data with a 100 ns resolution
Object
JIT
Console Application
DateTime
3. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
Namespace
Inheritance
Object
float - .NET alias
4. Allows the definition of a Class to span multiple files (within the same Project)
Value Type
Partial Class Modifier
Static Class
char - Size
5. Must have a data type
Float (or float) - Size
using
Variable (C# requirements)
ulong - Size
6. System.Int64
Encapsulation
using
Boolean - Size
long - .NET alias
7. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
Console Application
Internal Access Modifier
Operator
8. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Statement
IDE
using
Window.xaml.cs
9. 64 bit integer data
Statement
Int64 - Size
Visual Studio Solution
bool - Size
10. The process of compiling IL source into CPU-native code for execution.
Just-in-time (JIT
Base Class
Variable
Inheritance
11. 8 bit - signed byte (-128 - 127)
sbyte - Size
Syntax
Window.xaml.cs
Polymorphism
12. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Class Statement
Derived Class
csc.exe
char - Size
13. A type of statement that produces a value that might be tested or assigned to a variable.
Heap
Assembly
Private Access Modifier
Expression
14. Variables defined by a class
float - .NET alias
double - .NET alias
Field
Expression
15. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Static Class
Class aka Type
Abstract Class Modifier
Variable (C# requirements)
16. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Comments
Window.xaml.cs
Int32 - Size
double - .NET alias
17. 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.
Int64 - Size
Identifiers
Static Class
Float (or float) - Size
18. Code which signifies a carriage return. Symbolises a new line in a text box.
r
Textbox
Abstraction
Boolean Operator
19. Indicates that the Method can be overridden.
Virtual Method Modifier
ulong - .NET alias
Partial Method Modifier
Private Access Modifier
20. Something that has a different number of parameters to it's predecessor
Base Class
Abstract Method Modifier
Overloaded Method
Variable (C# requirements)
21. Command which runs repeatedly while (some) condition is true.
Encapsulation
Public Keyword
float - .NET alias
While Statement
22. A symbol that specifies an operation to be performed on one or more variables.
Operator
Conditional Operator
Common Language Runtime (CLR)
short - Size
23. Access is limited to the current Assembly
Primitive
Internal Access Modifier
Identifiers
JIT
24. The lowest level or fundamental data types needed for representing data.
Expression
Primitive Type
Abstract Class Modifier
Strong Typing
25. A Class that can only have Static Members
Static Class
Internal Access Modifier
Expression
Variable
26. 32 bit integer data
IDE
Constant
Heap
int - Size
27. Most common kind of reference type. They define objects. They must have at least one method and one field.
Class aka Type
If Statement
Equality Operator
Int64 - Size
28. true or false
Virtual Method Modifier
Stack
uint - Size
Boolean - Size
29. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Heap
Expression
Intermediate Language (IL)
Inheritance
30. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Visual Studio Solution
Namespace
Polymorphism
W.P.F
31. System.Single
float - .NET alias
Expression
Sealed Class
uint - .NET alias
32. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Encapsulation
Primitive Type
Internal Access Modifier
Precedence
33. When a sub class passes down all the behaviours of the original parent class
short - Size
Inheritance
Strong Typing
Encapsulation
34. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Properties
Keyword
sbyte - .NET alias
Variable
35. System.UInt32
uint - .NET alias
byte - Size
NET
Identifiers
36. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
JIT
Textbox
Static Member
Primitive
37. The "Type" name of data that is stored on the Stack
Primitive
Comments
Class
Value Type
38. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Precedence
csc.exe
Expression
Intermediate Language (IL)
39. Contains the class definitions that allow access to the functionality provided by .NET.
Textbox
Visual Studio Solution
Framework Class Library (FCL)
int - Size
40. 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
Expression
Comments
CLR
Heap
41. (&& or || or & or |)
NET
char - .NET alias
returnType methodName (parameterList)
Conditional Operator
42. Compilation of classes. In C# Usually ends in .dll or .exe
DateTime
W.P.F
Strong Typing
Assembly
43. A Class that cannot be instantiated.
Static Class
int - Size
Namespace
short - .NET alias
44. count = count+1 or count++ or count__. Both count variables are Unary Operators
Boolean - Size
Encapsulation
Incrementing / Decrementing Variables
Conditional Operator
45. 32 bit single precision floating point data
Heap
Class Statement
Keyword
Float (or float) - Size
46. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Class aka Type
Statement
Strong Typing
Stack
47. Names reserved by the compiler that coders are not allowed to use as identifiers.
Keyword
Label
Parameter aka Argument
Relational Operator
48. Access is limited to the current Assembly and Derived Types
byte - .NET alias
short - Size
Protected Internal Access Modifier
ushort - Size
49. Framework Class Library
returnType methodName (parameterList)
FCL
Partial Class Modifier
Value Type
50. (== or !=)
Constant
Label
Equality Operator
int - Size