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 member type of a Class that performs an action.
ushort - .NET alias
Assignment Operator
uint - Size
Method
2. Symbols which transform and combine expressions
Keyword
Stack
byte - .NET alias
Operator
3. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Abstract Class Modifier
Int64 - Size
Inheritance
long - .NET alias
4. Command which runs repeatedly while (some) condition is true.
While Statement
C#
Primitive
Operator
5. 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.
Assignment Operator
Polymorphism
C#
Identifiers
6. Framework Class Library
Float (or float) - Size
float - .NET alias
FCL
Stack
7. Code which signifies a carriage return. Symbolises a new line in a text box.
References (Visual Studio Solution
Namespace
r
While Statement
8. Compilation of classes. In C# Usually ends in .dll or .exe
Variable (C# requirements)
Heap
Assembly
References (Visual Studio Solution
9. System.Char
char - .NET alias
ulong - Size
If Statement
Method
10. System.UInt16
ushort - .NET alias
bool - Size
Conditional Operator
Unary Operator
11. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Class
Polymorphism
Keyword
Parameter aka Argument
12. The .NET run-time environment that enables code to be compiled and executed.
If Statement
Derived Class
Public Keyword
Common Language Runtime (CLR)
13. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Expression
Window.xaml.cs
Unary Operator
Inheritance
14. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Abstract Method Modifier
Partial Class Modifier
Public Keyword
Primitive
15. Sits behind GUI (Graphical User Interface) and provides event listeners
Window.xaml.cs
byte - .NET alias
Abstract Method Modifier
Public Keyword
16. 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)
Encapsulation
Boolean Operator
Precedence
Framework Class Library (FCL)
17. 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
Keyword
Namespace
Decimal (or decimal) - Size
18. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
char - Size
Boolean - Size
Statement
Console Application
19. The lowest level or fundamental data types needed for representing data.
Primitive Type
Assembly
C#
Int64 - Size
20. System.Int16
decimal - .NET alias
sbyte - .NET alias
short - .NET alias
Label
21. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.
Conditional Operator
Partial Method Modifier
Namespace
Dot Notation
22. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Static Class
Array
Float (or float) - Size
Visual Studio Solution
23. System.Byte
Program
Static Class
byte - .NET alias
Strong Typing
24. Allows the definition of a Class to span multiple files (within the same Project)
String (or string)
Internal Access Modifier
Partial Class Modifier
Object
25. 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.
Partial Method Modifier
Assembly
Abstract Method Modifier
W.P.F
26. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
Program
Operator
char - .NET alias
Assembly
27. (&& or || or & or |)
ulong - .NET alias
Variable (C# requirements)
Conditional Operator
Decimal (or decimal) - Size
28. Command Language Runtime
Intermediate Language (IL)
CLR
Assignment Operator
Protected Access Modifier
29. 32 bit single precision floating point data
short - .NET alias
Float (or float) - Size
Precedence
Boolean - Size
30. System.UInt64
Array
ulong - .NET alias
Primitive
Partial Method Modifier
31. Indicates that the Method can be overridden.
Base Class
ushort - .NET alias
Virtual Method Modifier
Namespace
32. System.Single
using
byte - Size
Boolean - Size
float - .NET alias
33. Mathematical (+ or - or / or %)
Assembly
Operator
Label
Variable
34. Field whose value can never change. Declared with 'const' keyword
Stack
uint - Size
Constant
Window.xaml.cs
35. Most common kind of reference type. They define objects. They must have at least one method and one field.
C#
byte - .NET alias
Class aka Type
uint - Size
36. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
Assignment Operator
Value Type
short - Size
37. 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.
Variable
Int64 - Size
sbyte - Size
ushort - Size
38. 8 bit - signed byte (-128 - 127)
double - .NET alias
Statement
sbyte - Size
Field
39. Used to display text that end user does not need to edit.
Derived Class
ulong - .NET alias
Label
Framework Class Library (FCL)
40. System.Int32
int - .NET alias
Array
Keyword
Identifiers
41. 32 bit integer data
Console Application
Statement
int - Size
FCL
42. 16 bit - unsigned integer data (0 to 65535)
Float (or float) - Size
float - .NET alias
Inheritance
ushort - Size
43. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Primitive Type
char - .NET alias
Operator
Properties
44. System.Double
short - Size
char - Size
double - .NET alias
String (or string)
45. Groups classes together so that they have a unique identifier
Namespace
Identifiers
Operator
ushort - Size
46. System.Int64
long - .NET alias
Inheritance
Protected Access Modifier
using
47. When a sub class passes down all the behaviours of the original parent class
Variable (C# requirements)
Inheritance
Stack
Int32 - Size
48. Must have a data type
DateTime
Partial Method Modifier
Incrementing / Decrementing Variables
Variable (C# requirements)
49. 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
Public Keyword
Heap
Just-in-time (JIT
Primitive
50. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
returnType methodName (parameterList)
ulong - Size
C#
Inheritance