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. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
NET
DateTime
using
char - Size
2. System.Double
returnType methodName (parameterList)
Relational Operator
double - .NET alias
ushort - .NET alias
3. Windows Presentation Foundation
ushort - .NET alias
W.P.F
Virtual Method Modifier
Identifiers
4. System.Int64
char - .NET alias
long - .NET alias
Abstract Class Modifier
Abstraction
5. Represents date and time data with a 100 ns resolution
If Statement
DateTime
Heap
Static Member
6. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Comments
References (Visual Studio Solution
ulong - .NET alias
using
7. (&& or || or & or |)
Protected Internal Access Modifier
Class Statement
Conditional Operator
float - .NET alias
8. 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.
Primitive
Identifiers
Constructor
Static Member
9. Groups classes together so that they have a unique identifier
Static Member
Operator
Namespace
r
10. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Method
Heap
Inheritance
Array
11. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
Variable
Inheritance
C#
Heap
12. Syntax of a C# Method
Primitive Type
Field
returnType methodName (parameterList)
Protected Internal Access Modifier
13. 64 bit integer data
long - Size
Variable (C# requirements)
int - Size
ushort - .NET alias
14. Keyword which exposes members to other classes OR Identifier which makes program elements public
Static Member
Public Keyword
short - .NET alias
Properties
15. Container for one or more Visual Studio Projects.
Constructor
Static Class
String (or string)
Visual Studio Solution
16. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
sbyte - Size
Encapsulation
Primitive Type
17. Microsoft's generic software framework for application development.
Method
using
Identifiers
NET
18. Compilation of classes. In C# Usually ends in .dll or .exe
char - .NET alias
Abstraction
Constant
Assembly
19. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Properties
Polymorphism
char - .NET alias
W.P.F
20. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Constructor
csc.exe
Sealed Class
Program
21. When a sub class passes down all the behaviours of the original parent class
ulong - Size
int - .NET alias
char - .NET alias
Inheritance
22. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Class Statement
Properties
Namespace
Comments
23. System.UInt32
uint - .NET alias
float - .NET alias
Assignment Operator
Stack
24. A symbol that specifies an operation to be performed on one or more variables.
Strong Typing
Virtual Method Modifier
csc.exe
Operator
25. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Expression
Operator
Static Class
long - .NET alias
26. The process of hiding and restricting access to the implementation details of a data structure.
Expression
Program
Static Class
Encapsulation
27. System.Char
char - .NET alias
Properties
Comments
Value Type
28. The .NET run-time environment that enables code to be compiled and executed.
Common Language Runtime (CLR)
float - .NET alias
Relational Operator
uint - .NET alias
29. 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
Label
Class Statement
Dot Notation
30. Field whose value can never change. Declared with 'const' keyword
References (Visual Studio Solution
Namespace
Constant
ulong - .NET alias
31. The "Type" name of data that is stored on the Stack
W.P.F
C#
Constructor
Value Type
32. 32 bit - unsigned integer data
FCL
ushort - .NET alias
Encapsulation
uint - Size
33. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
using
Public Keyword
Abstract Class Modifier
Static Class
34. Code which signifies a carriage return. Symbolises a new line in a text box.
r
References (Visual Studio Solution
Window.xaml.cs
Program
35. 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.
Intermediate Language (IL)
bool - Size
Encapsulation
uint - .NET alias
36. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Incrementing / Decrementing Variables
DateTime
Console Application
Array
37. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Statement
short - .NET alias
ushort - Size
long - .NET alias
38. 16 bit - signed integer data (-32768 to 32767)
short - Size
If Statement
Expression
Static Class
39. Sits behind GUI (Graphical User Interface) and provides event listeners
Incrementing / Decrementing Variables
ushort - Size
Namespace
Window.xaml.cs
40. 32 bit integer data
Internal Access Modifier
ulong - Size
int - Size
Data structures
41. Command Language Runtime
CLR
long - Size
Encapsulation
Method
42. System.Int32
Program
float - .NET alias
int - .NET alias
sbyte - .NET alias
43. A representation of an area in the computer memory in which a value of a particular data type can be stored.
char - Size
Textbox
Variable
Method
44. Introduces a new class. Marked by curly brackets { }
Static Class
Class Statement
sbyte - .NET alias
Partial Class Modifier
45. 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'.
CLR
long - .NET alias
Textbox
IDE
46. true or false
Value Type
Syntax
Boolean - Size
char - .NET alias
47. System.Byte
Primitive
byte - .NET alias
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Protected Internal Access Modifier
48. 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
Expression
Dot Notation
Polymorphism
Object
49. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Statement
char - Size
Variable (C# requirements)
Static Class
50. Just-in-time compilation
Expression
CLR
JIT
Object