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. Access is limited to the current Assembly and Derived Types
Protected Internal Access Modifier
Inheritance
Parameter aka Argument
using
2. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
Double (or double) - Size
Partial Class Modifier
short - .NET alias
3. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Precedence
NET
Statement
Variable
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.
Constant
Assembly
Partial Method Modifier
short - Size
5. (== or !=)
Expression
short - .NET alias
Namespace
Equality Operator
6. 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
Textbox
Heap
Boolean - Size
using
7. A method that is called whenever an Object is created. The method uses the same name as the Class.
Label
Method
Constructor
Abstract Class Modifier
8. A Class that cannot be Inherited
FCL
char - .NET alias
ulong - .NET alias
Sealed Class
9. (= or += or -= or = or /=)
Framework Class Library (FCL)
Assignment Operator
JIT
DateTime
10. System.Int16
Method
Common Language Runtime (CLR)
short - .NET alias
Private Access Modifier
11. Container for one or more Visual Studio Projects.
Heap
Reference Type
Visual Studio Solution
Derived Class
12. A Member that cannot be accessed/invoked through an Object Instance.
Common Language Runtime (CLR)
float - .NET alias
JIT
Static Member
13. Introduces a new class. Marked by curly brackets { }
Class Statement
Keyword
FCL
IDE
14. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
ulong - .NET alias
Comments
If Statement
Expression
15. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Data structures
Console Application
ushort - Size
Properties
16. Keyword which exposes members to other classes OR Identifier which makes program elements public
Boolean Operator
int - Size
Public Keyword
Console Application
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.
References (Visual Studio Solution
Identifiers
Decimal (or decimal) - Size
Stack
18. Command Language Runtime
References (Visual Studio Solution
CLR
Protected Internal Access Modifier
NET
19. System.UInt16
Stack
ushort - .NET alias
FCL
Float (or float) - Size
20. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Variable
Polymorphism
Heap
csc.exe
21. The member type of a Class that performs an action.
If Statement
Expression
Method
uint - Size
22. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Class
Polymorphism
Inheritance
Field
23. Groups classes together so that they have a unique identifier
Derived Class
long - Size
FCL
Namespace
24. 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
Constant
Sealed Class
Value Type
25. A Class that cannot be instantiated.
Static Class
Framework Class Library (FCL)
long - .NET alias
Operator
26. Restricts access to a Member to the current Class and any Derived Class.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Protected Access Modifier
Variable
Conditional Operator
27. 64 bit integer data
Sealed Class
int - .NET alias
Int64 - Size
short - .NET alias
28. (&& or || or & or |)
ushort - .NET alias
decimal - .NET alias
Conditional Operator
double - .NET alias
29. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
sbyte - .NET alias
using
ulong - .NET alias
While Statement
30. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
bool - Size
char - Size
Assembly
Class
31. Command which runs repeatedly while (some) condition is true.
While Statement
Relational Operator
Window.xaml.cs
Just-in-time (JIT
32. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Intermediate Language (IL)
Framework Class Library (FCL)
Array
Object
33. Windows Presentation Foundation
W.P.F
Assignment Operator
long - .NET alias
Heap
34. Compilation of classes. In C# Usually ends in .dll or .exe
Constant
Float (or float) - Size
Assembly
ulong - .NET alias
35. Access is limited to the current Assembly
Internal Access Modifier
Window.xaml.cs
int - Size
long - .NET alias
36. 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
Class Statement
CLR
Inheritance
37. 64 bit double precision floating point data
Dot Notation
Double (or double) - Size
Identifiers
ushort - .NET alias
38. A type of statement that produces a value that might be tested or assigned to a variable.
Expression
Statement
Variable
Method
39. A Class that inherits characteristics from another Class.
Window.xaml.cs
int - Size
Console Application
Derived Class
40. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
NET
Abstract Method Modifier
Operator
JITer
41. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Properties
Static Class
uint - .NET alias
Decimal (or decimal) - Size
42. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Stack
uint - Size
decimal - .NET alias
double - .NET alias
43. 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.
long - .NET alias
Double (or double) - Size
Statement
Syntax
44. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Int32 - Size
Strong Typing
Data structures
Common Language Runtime (CLR)
45. Represents the encapsulation of data and behaviors into a single unit.
Class
Variable (C# requirements)
Partial Class Modifier
Data structures
46. Indicates that the Method can be overridden.
Virtual Method Modifier
Internal Access Modifier
Private Access Modifier
If Statement
47. Series of instructions which tell a computer what to do.
W.P.F
Program
decimal - .NET alias
uint - .NET alias
48. System.Double
double - .NET alias
Reference Type
Assignment Operator
Value Type
49. Code which signifies a carriage return. Symbolises a new line in a text box.
r
Reference Type
using
Syntax
50. Extra information within a method
Strong Typing
short - .NET alias
Int32 - Size
Parameter aka Argument