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. Must have a data type
Variable (C# requirements)
Unary Operator
String (or string)
Protected Access Modifier
2. The "Type" name of data that is stored on the Heap
Relational Operator
Reference Type
Constant
Double (or double) - Size
3. 16 bit - unsigned integer data (0 to 65535)
String (or string)
Conditional Operator
Syntax
ushort - Size
4. The member type of a Class that performs an action.
Inheritance
char - .NET alias
Method
Variable
5. Microsoft's generic software framework for application development.
Statement
Intermediate Language (IL)
NET
Method
6. Something that has a different number of parameters to it's predecessor
Overloaded Method
Relational Operator
JITer
Textbox
7. 32 bit integer data
Operator
decimal - .NET alias
Stack
Int32 - Size
8. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Polymorphism
Precedence
uint - .NET alias
Program
9. Mathematical (+ or - or / or %)
Operator
Static Member
Int32 - Size
Variable
10. 32 bit single precision floating point data
Field
String (or string)
Float (or float) - Size
Syntax
11. 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
Expression
Encapsulation
Dot Notation
ushort - Size
12. Windows Presentation Foundation
Sealed Class
W.P.F
Assembly
using
13. A Class that cannot be Inherited
ulong - .NET alias
Sealed Class
FCL
If Statement
14. 64 bit integer data
Incrementing / Decrementing Variables
Properties
String (or string)
long - Size
15. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
Dot Notation
short - Size
Just-in-time (JIT
16. Syntax of a C# Method
Heap
Static Class
returnType methodName (parameterList)
Primitive
17. Text as Unicode characters
Label
String (or string)
Common Language Runtime (CLR)
Partial Class Modifier
18. Most common kind of reference type. They define objects. They must have at least one method and one field.
Label
Double (or double) - Size
Class aka Type
Class Statement
19. Command Language Runtime
Statement
Float (or float) - Size
Abstract Class Modifier
CLR
20. Keyword which exposes members to other classes OR Identifier which makes program elements public
Textbox
Public Keyword
long - Size
Inheritance
21. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
using
Expression
byte - Size
Variable
22. System.Decimal
decimal - .NET alias
Operator
Base Class
String (or string)
23. System.SByte
sbyte - .NET alias
Unary Operator
Expression
Primitive Type
24. Access is limited to the current Assembly
Internal Access Modifier
Expression
r
Partial Method Modifier
25. 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.
Variable
Partial Method Modifier
Operator
ulong - .NET alias
26. (&& or || or & or |)
Conditional Operator
short - Size
Static Member
Protected Access Modifier
27. 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
Partial Method Modifier
Heap
Visual Studio Solution
Public Keyword
28. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.
Encapsulation
Class Statement
Virtual Method Modifier
Abstract Method Modifier
29. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Class Statement
csc.exe
Stack
uint - .NET alias
30. Only requires one operand usually a count+1 or a count++ or a count--
Unary Operator
Object
W.P.F
int - .NET alias
31. Command which runs repeatedly while (some) condition is true.
int - .NET alias
While Statement
Keyword
Expression
32. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Assignment Operator
Constructor
sbyte - .NET alias
Comments
33. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Inheritance
Primitive
Dot Notation
r
34. System.UInt16
ushort - .NET alias
Protected Internal Access Modifier
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Polymorphism
35. true or false
Assembly
Protected Internal Access Modifier
bool - Size
Boolean - Size
36. 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'.
Textbox
Statement
Inheritance
Equality Operator
37. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Class Statement
ulong - Size
Statement
Class
38. System.Single
double - .NET alias
Keyword
CLR
float - .NET alias
39. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Intermediate Language (IL)
CLR
Namespace
Parameter aka Argument
40. Names reserved by the compiler that coders are not allowed to use as identifiers.
Double (or double) - Size
Keyword
While Statement
short - Size
41. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Variable
ushort - Size
Intermediate Language (IL)
42. 32 bit - unsigned integer data
Inheritance
uint - Size
Variable
long - Size
43. System.Double
Protected Access Modifier
Textbox
Boolean - Size
double - .NET alias
44. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
Just-in-time (JIT
char - .NET alias
Namespace
45. Variables defined by a class
Field
Private Access Modifier
Double (or double) - Size
Assignment Operator
46. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
Visual Studio Solution
Operator
Just-in-time (JIT
47. Container for one or more Visual Studio Projects.
Object
Relational Operator
Visual Studio Solution
Class aka Type
48. Groups classes together so that they have a unique identifier
Object
long - .NET alias
byte - Size
Namespace
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.
Identifiers
Relational Operator
long - .NET alias
IDE
50. Compilation of classes. In C# Usually ends in .dll or .exe
Data structures
Assembly
char - .NET alias
ulong - Size