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. 64 bit double precision floating point data
using
Double (or double) - Size
decimal - .NET alias
Decimal (or decimal) - Size
2. The "Type" name of data that is stored on the Stack
Precedence
Primitive
Field
Value Type
3. Names reserved by the compiler that coders are not allowed to use as identifiers.
Assignment Operator
Boolean - Size
Protected Internal Access Modifier
Keyword
4. Indicates that the Method can be overridden.
Virtual Method Modifier
Incrementing / Decrementing Variables
uint - Size
Float (or float) - Size
5. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
double - .NET alias
using
decimal - .NET alias
Comments
6. The process of compiling IL source into CPU-native code for execution.
Float (or float) - Size
short - Size
Method
Just-in-time (JIT
7. (== or !=)
Assembly
Abstract Method Modifier
Static Member
Equality Operator
8. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)
Static Class
Boolean Operator
char - .NET alias
ulong - .NET alias
9. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
While Statement
Expression
Variable
Polymorphism
10. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Derived Class
Value Type
Stack
Keyword
11. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Boolean Operator
Stack
byte - .NET alias
Statement
12. Microsoft's generic software framework for application development.
Partial Method Modifier
Statement
NET
Virtual Method Modifier
13. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Data structures
Boolean Operator
char - .NET alias
Comments
14. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
decimal - .NET alias
Equality Operator
JITer
Public Keyword
15. 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
Dot Notation
Statement
While Statement
Textbox
16. 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
Static Member
Decimal (or decimal) - Size
Heap
Class
17. Field whose value can never change. Declared with 'const' keyword
byte - Size
Float (or float) - Size
Constant
ulong - Size
18. 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
Strong Typing
Object
Parameter aka Argument
Constant
19. Most common kind of reference type. They define objects. They must have at least one method and one field.
Operator
Class aka Type
r
Array
20. 8 bit - signed byte (-128 - 127)
r
Protected Internal Access Modifier
sbyte - Size
Int32 - Size
21. Syntax of a C# Method
Comments
Label
returnType methodName (parameterList)
Partial Class Modifier
22. 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.
Syntax
Static Class
Expression
NET
23. 32 bit - unsigned integer data
ulong - Size
uint - Size
Field
Array
24. 32 bit single precision floating point data
Class aka Type
Assignment Operator
Float (or float) - Size
byte - .NET alias
25. A symbol that specifies an operation to be performed on one or more variables.
csc.exe
Class Statement
Overloaded Method
Operator
26. 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'.
Method
Textbox
Object
Assembly
27. Extra information within a method
Parameter aka Argument
Dot Notation
Namespace
r
28. Something that has a different number of parameters to it's predecessor
Overloaded Method
Precedence
short - .NET alias
Int32 - Size
29. Just-in-time compilation
Operator
uint - .NET alias
JIT
sbyte - .NET alias
30. When a sub class passes down all the behaviours of the original parent class
Inheritance
Program
Primitive
short - Size
31. 16 bit - unsigned integer data (0 to 65535)
sbyte - Size
Keyword
Statement
ushort - Size
32. System.Byte
long - Size
byte - .NET alias
ulong - Size
Namespace
33. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
returnType methodName (parameterList)
Precedence
ushort - .NET alias
W.P.F
34. Access is limited to the current Assembly and Derived Types
NET
Namespace
Protected Internal Access Modifier
Encapsulation
35. Must have a data type
float - .NET alias
Variable (C# requirements)
char - Size
Field
36. Code which signifies a carriage return. Symbolises a new line in a text box.
using
Abstract Method Modifier
ushort - Size
r
37. System.UInt16
Static Class
Encapsulation
ushort - .NET alias
JITer
38. Command Language Runtime
Assembly
ulong - .NET alias
Constant
CLR
39. Allow access to types that exist in outside assemblies.
Syntax
Float (or float) - Size
References (Visual Studio Solution
double - .NET alias
40. Code which implements GUI (graphical User Interface).
double - .NET alias
Intermediate Language (IL)
CLR
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
41. Restricts access to a Member to the current Class.
Int64 - Size
Private Access Modifier
csc.exe
long - Size
42. System.Int64
long - .NET alias
Public Keyword
short - Size
float - .NET alias
43. A method that is called whenever an Object is created. The method uses the same name as the Class.
Method
Boolean Operator
Constructor
char - .NET alias
44. Contains the class definitions that allow access to the functionality provided by .NET.
Int64 - Size
JIT
returnType methodName (parameterList)
Framework Class Library (FCL)
45. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Public Keyword
Statement
char - .NET alias
decimal - .NET alias
46. 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.
Assembly
Encapsulation
Data structures
r
47. Restricts access to a Member to the current Class and any Derived Class.
Int64 - Size
Inheritance
References (Visual Studio Solution
Protected Access Modifier
48. System.Single
float - .NET alias
Common Language Runtime (CLR)
Sealed Class
Stack
49. Sits behind GUI (Graphical User Interface) and provides event listeners
Statement
Window.xaml.cs
Partial Method Modifier
Visual Studio Solution
50. 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.
Stack
Identifiers
If Statement
C#