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. A method that is called whenever an Object is created. The method uses the same name as the Class.
JITer
Constructor
Unary Operator
csc.exe
2. 16 bit - signed integer data (-32768 to 32767)
Heap
short - Size
Method
Operator
3. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
JIT
If Statement
csc.exe
ulong - Size
4. Symbols which transform and combine expressions
Intermediate Language (IL)
Operator
Assignment Operator
Framework Class Library (FCL)
5. Command which runs repeatedly while (some) condition is true.
While Statement
sbyte - .NET alias
Abstract Class Modifier
Statement
6. A type of statement that produces a value that might be tested or assigned to a variable.
Assignment Operator
Program
Expression
uint - .NET alias
7. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
returnType methodName (parameterList)
Encapsulation
Common Language Runtime (CLR)
Console Application
8. An instance of a class that exists at run-time and is typically referenced via a variable name.
Just-in-time (JIT
Primitive Type
Object
FCL
9. The .NET run-time environment that enables code to be compiled and executed.
Common Language Runtime (CLR)
Primitive
Statement
Operator
10. System.SByte
sbyte - .NET alias
uint - Size
Variable
Derived Class
11. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Constant
Dot Notation
Abstraction
Strong Typing
12. 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.
Class aka Type
Double (or double) - Size
Syntax
Object
13. (= or += or -= or = or /=)
sbyte - Size
Assignment Operator
FCL
Public Keyword
14. System.Char
Decimal (or decimal) - Size
char - .NET alias
Static Class
returnType methodName (parameterList)
15. 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.
If Statement
Label
Variable
Textbox
16. The "Type" name of data that is stored on the Stack
Static Class
Program
Value Type
byte - .NET alias
17. Must have a data type
short - .NET alias
DateTime
Conditional Operator
Variable (C# requirements)
18. 64 bit integer data
Method
Unary Operator
long - Size
Array
19. Keyword which exposes members to other classes OR Identifier which makes program elements public
Assignment Operator
Public Keyword
Sealed Class
uint - .NET alias
20. System.Single
uint - .NET alias
Class
Parameter aka Argument
float - .NET alias
21. 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.
References (Visual Studio Solution
Encapsulation
FCL
Stack
22. Sits behind GUI (Graphical User Interface) and provides event listeners
Syntax
Window.xaml.cs
bool - Size
Reference Type
23. Series of instructions which tell a computer what to do.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Program
Partial Class Modifier
Namespace
24. (&& or || or & or |)
Conditional Operator
Operator
NET
DateTime
25. count = count+1 or count++ or count__. Both count variables are Unary Operators
Assembly
Incrementing / Decrementing Variables
Object
JITer
26. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
csc.exe
Sealed Class
Inheritance
uint - .NET alias
27. 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
Static Class
Object
ulong - .NET alias
long - .NET alias
28. 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
Relational Operator
Operator
Class aka Type
Heap
29. 32 bit - unsigned integer data
ushort - Size
uint - Size
Unary Operator
Boolean Operator
30. true or false
decimal - .NET alias
Static Class
Boolean - Size
Assembly
31. Microsoft's generic software framework for application development.
NET
Intermediate Language (IL)
Array
Partial Method Modifier
32. Restricts access to a Member to the current Class.
Virtual Method Modifier
Namespace
Private Access Modifier
Base Class
33. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Primitive Type
CLR
double - .NET alias
using
34. The member type of a Class that performs an action.
Method
sbyte - Size
uint - .NET alias
Equality Operator
35. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Polymorphism
float - .NET alias
Common Language Runtime (CLR)
Operator
36. 64 bit integer data
Static Class
Static Member
Syntax
Int64 - Size
37. 64 bit double precision floating point data
Object
Double (or double) - Size
Variable
short - Size
38. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Double (or double) - Size
float - .NET alias
Stack
csc.exe
39. System.Decimal
Virtual Method Modifier
r
Stack
decimal - .NET alias
40. Allows the definition of a Class to span multiple files (within the same Project)
Partial Class Modifier
Statement
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
char - .NET alias
41. Represents date and time data with a 100 ns resolution
DateTime
Polymorphism
short - Size
Namespace
42. 64 bit - unsigned integer data
ulong - Size
Base Class
Conditional Operator
Polymorphism
43. 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)
Boolean Operator
returnType methodName (parameterList)
ulong - .NET alias
Reference Type
44. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Derived Class
uint - Size
Abstraction
Assembly
45. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Boolean - Size
uint - Size
Precedence
Encapsulation
46. Text as Unicode characters
Statement
String (or string)
Constant
Value Type
47. The lowest level or fundamental data types needed for representing data.
Textbox
Polymorphism
Primitive Type
Int32 - Size
48. Field whose value can never change. Declared with 'const' keyword
Virtual Method Modifier
Constant
byte - Size
bool - Size
49. (== or !=)
DateTime
Class
Equality Operator
Object
50. Windows Presentation Foundation
Operator
Incrementing / Decrementing Variables
Unary Operator
W.P.F