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.Char
ushort - Size
char - .NET alias
Primitive Type
Common Language Runtime (CLR)
2. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Primitive Type
Sealed Class
Precedence
Public Keyword
3. 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'.
Unary Operator
csc.exe
Textbox
byte - .NET alias
4. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.
References (Visual Studio Solution
returnType methodName (parameterList)
decimal - .NET alias
Partial Method Modifier
5. true or false
csc.exe
Constant
bool - Size
Inheritance
6. Extra information within a method
Decimal (or decimal) - Size
Parameter aka Argument
Heap
ushort - Size
7. A type of statement that produces a value that might be tested or assigned to a variable.
Encapsulation
Object
Expression
ushort - Size
8. The process of compiling IL source into CPU-native code for execution.
returnType methodName (parameterList)
Just-in-time (JIT
int - Size
long - Size
9. 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.
int - .NET alias
NET
Syntax
Unary Operator
10. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Keyword
Protected Access Modifier
Abstraction
Primitive
11. 64 bit integer data
Int64 - Size
bool - Size
Heap
Console Application
12. Series of instructions which tell a computer what to do.
float - .NET alias
Parameter aka Argument
Program
Polymorphism
13. Microsoft's generic software framework for application development.
Base Class
IDE
NET
JIT
14. 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
Syntax
Class
sbyte - .NET alias
15. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
Equality Operator
Heap
Common Language Runtime (CLR)
16. System.Byte
ulong - .NET alias
Primitive
Protected Access Modifier
byte - .NET alias
17. The .NET run-time environment that enables code to be compiled and executed.
Common Language Runtime (CLR)
Incrementing / Decrementing Variables
char - .NET alias
Visual Studio Solution
18. A symbol that specifies an operation to be performed on one or more variables.
Internal Access Modifier
Operator
Precedence
Overloaded Method
19. 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.
IDE
Strong Typing
Identifiers
csc.exe
20. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
C#
Class Statement
Namespace
Abstraction
21. (= or += or -= or = or /=)
Common Language Runtime (CLR)
ulong - Size
Operator
Assignment Operator
22. The "Type" name of data that is stored on the Heap
ushort - Size
Reference Type
Statement
If Statement
23. System.Int64
long - .NET alias
Keyword
String (or string)
Inheritance
24. 64 bit - unsigned integer data
ulong - Size
Static Member
Double (or double) - Size
Method
25. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Comments
Virtual Method Modifier
Encapsulation
26. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
csc.exe
Comments
Operator
int - .NET alias
27. Names reserved by the compiler that coders are not allowed to use as identifiers.
Equality Operator
Statement
Decimal (or decimal) - Size
Keyword
28. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
Textbox
JITer
Overloaded Method
String (or string)
29. Code which implements GUI (graphical User Interface).
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Static Member
Stack
Field
30. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Virtual Method Modifier
sbyte - Size
Polymorphism
Reference Type
31. Command which runs repeatedly while (some) condition is true.
Visual Studio Solution
While Statement
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Int32 - Size
32. (== or !=)
Int32 - Size
JITer
Equality Operator
Common Language Runtime (CLR)
33. 8 bit - signed byte (-128 - 127)
sbyte - Size
Dot Notation
Constructor
Identifiers
34. System.Int32
Derived Class
Relational Operator
Textbox
int - .NET alias
35. Container for one or more Visual Studio Projects.
Assembly
Framework Class Library (FCL)
using
Visual Studio Solution
36. 32 bit integer data
Framework Class Library (FCL)
sbyte - Size
Int32 - Size
Program
37. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Strong Typing
short - .NET alias
Expression
Comments
38. Only requires one operand usually a count+1 or a count++ or a count--
Base Class
ushort - Size
CLR
Unary Operator
39. 64 bit double precision floating point data
Assignment Operator
Keyword
Double (or double) - Size
Inheritance
40. The process of hiding and restricting access to the implementation details of a data structure.
Statement
Framework Class Library (FCL)
Abstraction
Encapsulation
41. Code which signifies a carriage return. Symbolises a new line in a text box.
r
csc.exe
Incrementing / Decrementing Variables
References (Visual Studio Solution
42. A Class that cannot be instantiated.
CLR
Incrementing / Decrementing Variables
Static Member
Static Class
43. 16 bit - unsigned integer data (0 to 65535)
ushort - Size
double - .NET alias
long - .NET alias
Window.xaml.cs
44. System.Decimal
returnType methodName (parameterList)
Public Keyword
decimal - .NET alias
Method
45. Represents the encapsulation of data and behaviors into a single unit.
References (Visual Studio Solution
JIT
Class
Decimal (or decimal) - Size
46. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Encapsulation
Abstract Class Modifier
Primitive
csc.exe
47. Keyword which exposes members to other classes OR Identifier which makes program elements public
Public Keyword
Polymorphism
Decimal (or decimal) - Size
char - .NET alias
48. 128 bit fixed precision (financial)
Identifiers
References (Visual Studio Solution
Decimal (or decimal) - Size
Field
49. Restricts access to a Member to the current Class and any Derived Class.
Inheritance
Textbox
csc.exe
Protected Access Modifier
50. System.Int16
Static Class
Assignment Operator
short - .NET alias
W.P.F