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 act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Method
Assembly
ushort - Size
Abstraction
2. true or false
Polymorphism
bool - Size
Variable
Incrementing / Decrementing Variables
3. When a sub class passes down all the behaviours of the original parent class
Inheritance
Object
Boolean - Size
Internal Access Modifier
4. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Operator
Encapsulation
References (Visual Studio Solution
If Statement
5. A Class that can only have Static Members
Static Class
Heap
Assembly
FCL
6. System.Int16
Value Type
short - .NET alias
Namespace
bool - Size
7. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Framework Class Library (FCL)
Inheritance
Window.xaml.cs
char - Size
8. Mathematical (+ or - or / or %)
Console Application
Derived Class
Encapsulation
Operator
9. 16 bit - unsigned integer data (0 to 65535)
Base Class
Class aka Type
ushort - Size
C#
10. 16 bit - signed integer data (-32768 to 32767)
Double (or double) - Size
short - Size
While Statement
Abstract Class Modifier
11. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
JITer
Variable
Virtual Method Modifier
Polymorphism
12. The .NET run-time environment that enables code to be compiled and executed.
Comments
Syntax
Expression
Common Language Runtime (CLR)
13. Series of instructions which tell a computer what to do.
Parameter aka Argument
ulong - Size
Intermediate Language (IL)
Program
14. 8 bit - unsigned byte (0 - 255)
Private Access Modifier
Method
Operator
byte - Size
15. (== or !=)
Equality Operator
long - Size
Operator
While Statement
16. System.UInt64
Variable (C# requirements)
Textbox
Framework Class Library (FCL)
ulong - .NET alias
17. Command which runs repeatedly while (some) condition is true.
While Statement
Comments
csc.exe
Inheritance
18. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
Abstract Method Modifier
Assembly
Partial Class Modifier
Encapsulation
19. 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.
csc.exe
Encapsulation
ulong - Size
Visual Studio Solution
20. System.Byte
byte - .NET alias
Variable (C# requirements)
decimal - .NET alias
sbyte - Size
21. Something that has a different number of parameters to it's predecessor
ushort - .NET alias
Comments
Primitive
Overloaded Method
22. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
Inheritance
Expression
Namespace
Static Class
23. 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.
Common Language Runtime (CLR)
Encapsulation
Abstract Method Modifier
Window.xaml.cs
24. Represents date and time data with a 100 ns resolution
DateTime
Inheritance
Variable
long - Size
25. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Constructor
Array
short - Size
Class Statement
26. Microsoft's generic software framework for application development.
IDE
NET
Object
Int32 - Size
27. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Reference Type
Method
Constructor
Encapsulation
28. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
Heap
Equality Operator
int - .NET alias
29. Used to display text that end user does not need to edit.
Label
ulong - Size
Decimal (or decimal) - Size
IDE
30. Extra information within a method
Parameter aka Argument
short - .NET alias
Encapsulation
double - .NET alias
31. Must have a data type
Virtual Method Modifier
Constant
Reference Type
Variable (C# requirements)
32. 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
Console Application
Heap
int - .NET alias
long - Size
33. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Identifiers
Public Keyword
short - .NET alias
using
34. 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
Public Keyword
Virtual Method Modifier
char - .NET alias
35. Integrated Development Environment
Static Member
Class aka Type
returnType methodName (parameterList)
IDE
36. 16 bit- unsigned word (U+0000 to U+ffff)
char - Size
Textbox
Class aka Type
C#
37. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
double - .NET alias
JITer
Boolean - Size
Base Class
38. The member type of a Class that performs an action.
Equality Operator
Assignment Operator
Properties
Method
39. System.Char
Primitive Type
Static Member
char - .NET alias
ulong - Size
40. 32 bit single precision floating point data
Static Class
Variable
Float (or float) - Size
Class
41. Compilation of classes. In C# Usually ends in .dll or .exe
Assembly
NET
Class Statement
CLR
42. 64 bit double precision floating point data
Just-in-time (JIT
Common Language Runtime (CLR)
Assembly
Double (or double) - Size
43. Groups classes together so that they have a unique identifier
Data structures
Namespace
Console Application
Partial Class Modifier
44. Keyword which exposes members to other classes OR Identifier which makes program elements public
Dot Notation
Stack
r
Public Keyword
45. System.UInt32
Float (or float) - Size
Assembly
decimal - .NET alias
uint - .NET alias
46. Restricts access to a Member to the current Class.
Private Access Modifier
bool - Size
uint - .NET alias
Strong Typing
47. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
long - Size
Variable
Assembly
Abstract Class Modifier
48. Variables defined by a class
sbyte - .NET alias
Field
byte - .NET alias
char - .NET alias
49. The process of hiding and restricting access to the implementation details of a data structure.
Encapsulation
JITer
Virtual Method Modifier
Operator
50. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
char - Size
Static Class
csc.exe
Label