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. 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)
W.P.F
Class aka Type
Boolean Operator
Constant
2. 32 bit single precision floating point data
Program
Float (or float) - Size
Inheritance
short - .NET alias
3. 8 bit - signed byte (-128 - 127)
byte - Size
Value Type
Namespace
sbyte - Size
4. Syntax of a C# Method
Syntax
Abstract Class Modifier
Inheritance
returnType methodName (parameterList)
5. A symbol that specifies an operation to be performed on one or more variables.
Operator
Class
long - .NET alias
Encapsulation
6. 16 bit - signed integer data (-32768 to 32767)
short - Size
JITer
JIT
Static Member
7. Sits behind GUI (Graphical User Interface) and provides event listeners
Window.xaml.cs
byte - Size
Expression
Unary Operator
8. 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.
Assembly
Class Statement
FCL
Encapsulation
9. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
Dot Notation
C#
Expression
using
10. A Class from which other classes can inherit characteristics.
long - .NET alias
Overloaded Method
bool - Size
Base Class
11. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
JITer
Properties
char - .NET alias
Partial Class Modifier
12. A Class that cannot be instantiated.
Static Class
Constant
Overloaded Method
char - Size
13. Most common kind of reference type. They define objects. They must have at least one method and one field.
Class aka Type
Operator
uint - .NET alias
Visual Studio Solution
14. 64 bit double precision floating point data
Constant
Internal Access Modifier
Double (or double) - Size
Protected Internal Access Modifier
15. 16 bit - unsigned integer data (0 to 65535)
Inheritance
ushort - Size
Syntax
Encapsulation
16. The "Type" name of data that is stored on the Heap
Stack
Reference Type
Identifiers
Primitive
17. When a sub class passes down all the behaviours of the original parent class
Assembly
returnType methodName (parameterList)
Derived Class
Inheritance
18. true or false
Constant
Boolean - Size
Abstraction
DateTime
19. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Boolean Operator
Virtual Method Modifier
Reference Type
If Statement
20. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
r
uint - Size
IDE
Statement
21. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Object
ushort - .NET alias
using
Precedence
22. Command which runs repeatedly while (some) condition is true.
ushort - .NET alias
While Statement
uint - Size
Expression
23. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
uint - .NET alias
Precedence
IDE
Namespace
24. Compilation of classes. In C# Usually ends in .dll or .exe
Assembly
W.P.F
JIT
Window.xaml.cs
25. Names reserved by the compiler that coders are not allowed to use as identifiers.
Keyword
Object
Derived Class
Program
26. Symbols which transform and combine expressions
uint - .NET alias
Namespace
Operator
Visual Studio Solution
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
Object
DateTime
ushort - Size
W.P.F
28. (= or += or -= or = or /=)
Method
Class Statement
Expression
Assignment Operator
29. true or false
Primitive Type
Variable
bool - Size
Intermediate Language (IL)
30. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Abstract Method Modifier
Variable
Encapsulation
Overloaded Method
31. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Operator
Expression
Public Keyword
Base Class
32. System.Double
double - .NET alias
Class
Virtual Method Modifier
Incrementing / Decrementing Variables
33. System.Decimal
W.P.F
Variable
decimal - .NET alias
ushort - .NET alias
34. (< or > or <= or >=)
Decimal (or decimal) - Size
Relational Operator
byte - .NET alias
JITer
35. Contains the class definitions that allow access to the functionality provided by .NET.
Abstract Class Modifier
Assignment Operator
Data structures
Framework Class Library (FCL)
36. A Class that can only have Static Members
Virtual Method Modifier
Operator
csc.exe
Static Class
37. 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.
Label
Partial Class Modifier
Syntax
Class aka Type
38. 64 bit integer data
ulong - .NET alias
Encapsulation
Int64 - Size
Parameter aka Argument
39. The lowest level or fundamental data types needed for representing data.
Primitive Type
csc.exe
int - Size
long - .NET alias
40. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Precedence
Properties
Abstract Class Modifier
Inheritance
41. A Member that cannot be accessed/invoked through an Object Instance.
Static Member
ulong - Size
Operator
Variable
42. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
String (or string)
References (Visual Studio Solution
Object
Comments
43. Just-in-time compilation
JIT
If Statement
Base Class
uint - .NET alias
44. System.UInt32
byte - .NET alias
Properties
uint - .NET alias
DateTime
45. A method that is called whenever an Object is created. The method uses the same name as the Class.
Value Type
Strong Typing
Constructor
using
46. System.Char
Parameter aka Argument
r
Statement
char - .NET alias
47. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
Static Member
Statement
JITer
48. System.Int64
Encapsulation
long - .NET alias
Variable (C# requirements)
Identifiers
49. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Inheritance
Abstraction
Inheritance
IDE
50. System.Byte
short - .NET alias
Just-in-time (JIT
Console Application
byte - .NET alias