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. Variables defined by a class
W.P.F
Field
While Statement
JITer
2. 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.
Base Class
Float (or float) - Size
Identifiers
Statement
3. A Class that cannot be Inherited
Sealed Class
Polymorphism
Field
Object
4. System.Int32
Window.xaml.cs
int - .NET alias
Virtual Method Modifier
Expression
5. Just-in-time compilation
Expression
ulong - Size
Constructor
JIT
6. System.UInt64
ulong - .NET alias
sbyte - .NET alias
If Statement
double - .NET alias
7. Allow access to types that exist in outside assemblies.
NET
References (Visual Studio Solution
Decimal (or decimal) - Size
Class Statement
8. Command Language Runtime
Partial Class Modifier
CLR
Console Application
Dot Notation
9. 32 bit integer data
Console Application
char - Size
int - Size
Textbox
10. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
byte - .NET alias
Inheritance
Expression
double - .NET alias
11. System.Double
Common Language Runtime (CLR)
double - .NET alias
returnType methodName (parameterList)
char - Size
12. System.Int16
Array
Common Language Runtime (CLR)
Static Class
short - .NET alias
13. An instance of a class that exists at run-time and is typically referenced via a variable name.
Operator
Program
Variable
Object
14. 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
Array
Boolean Operator
15. Syntax of a C# Method
returnType methodName (parameterList)
Object
Sealed Class
FCL
16. 16 bit - unsigned integer data (0 to 65535)
JITer
Boolean - Size
ushort - Size
If Statement
17. 128 bit fixed precision (financial)
Decimal (or decimal) - Size
Constant
Common Language Runtime (CLR)
JITer
18. System.UInt32
Method
long - .NET alias
C#
uint - .NET alias
19. Access is limited to the current Assembly and Derived Types
Identifiers
Protected Internal Access Modifier
Encapsulation
Conditional Operator
20. Restricts access to a Member to the current Class.
Private Access Modifier
Identifiers
Precedence
W.P.F
21. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
byte - .NET alias
Inheritance
Textbox
Strong Typing
22. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Double (or double) - Size
csc.exe
Expression
r
23. A Class that inherits characteristics from another Class.
Overloaded Method
Decimal (or decimal) - Size
Derived Class
Intermediate Language (IL)
24. A Class that cannot be instantiated.
Static Class
Dot Notation
Expression
Variable
25. (< or > or <= or >=)
Window.xaml.cs
Float (or float) - Size
Relational Operator
Parameter aka Argument
26. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Polymorphism
Variable
Framework Class Library (FCL)
Partial Class Modifier
27. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
C#
Console Application
Heap
bool - Size
28. (== or !=)
Field
Base Class
Equality Operator
Protected Access Modifier
29. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Constant
Static Class
Polymorphism
Inheritance
30. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
using
Expression
ulong - .NET alias
Abstraction
31. The "Type" name of data that is stored on the Stack
Method
Value Type
Primitive Type
Identifiers
32. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
Int64 - Size
Protected Internal Access Modifier
JITer
Visual Studio Solution
33. Series of instructions which tell a computer what to do.
Conditional Operator
Assembly
Decimal (or decimal) - Size
Program
34. 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)
Stack
W.P.F
long - .NET alias
Boolean Operator
35. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.
Operator
JIT
Reference Type
Variable
36. The process of compiling IL source into CPU-native code for execution.
Expression
Method
Public Keyword
Just-in-time (JIT
37. 16 bit- unsigned word (U+0000 to U+ffff)
CLR
DateTime
Variable (C# requirements)
char - Size
38. Allows the definition of a Class to span multiple files (within the same Project)
Expression
Partial Class Modifier
int - Size
Inheritance
39. Used to display text that end user does not need to edit.
Label
long - Size
Textbox
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
40. Contains the class definitions that allow access to the functionality provided by .NET.
Precedence
Encapsulation
Framework Class Library (FCL)
Class Statement
41. Represents date and time data with a 100 ns resolution
Visual Studio Solution
DateTime
Internal Access Modifier
Value Type
42. Something that has a different number of parameters to it's predecessor
long - .NET alias
ulong - .NET alias
Overloaded Method
r
43. A symbol that specifies an operation to be performed on one or more variables.
ulong - .NET alias
Operator
Inheritance
Abstract Method Modifier
44. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Identifiers
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Intermediate Language (IL)
Common Language Runtime (CLR)
45. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Statement
Virtual Method Modifier
Window.xaml.cs
Stack
46. Introduces a new class. Marked by curly brackets { }
Internal Access Modifier
Boolean Operator
Class Statement
Int64 - Size
47. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
byte - .NET alias
Variable (C# requirements)
Variable
48. Compilation of classes. In C# Usually ends in .dll or .exe
Int32 - Size
Assembly
Static Class
float - .NET alias
49. Must have a data type
Identifiers
Variable (C# requirements)
char - Size
NET
50. Represents the encapsulation of data and behaviors into a single unit.
Assignment Operator
r
decimal - .NET alias
Class