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. Only requires one operand usually a count+1 or a count++ or a count--
Static Class
Incrementing / Decrementing Variables
Unary Operator
Int32 - Size
2. System.Int16
short - .NET alias
Equality Operator
sbyte - .NET alias
Encapsulation
3. Used to display text that end user does not need to edit.
uint - Size
Method
Object
Label
4. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
using
References (Visual Studio Solution
Abstraction
Boolean - Size
5. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Overloaded Method
Statement
Just-in-time (JIT
csc.exe
6. Command Language Runtime
If Statement
CLR
Dot Notation
Namespace
7. Most common kind of reference type. They define objects. They must have at least one method and one field.
returnType methodName (parameterList)
Class aka Type
int - .NET alias
Int64 - Size
8. A method that is called whenever an Object is created. The method uses the same name as the Class.
Constructor
Boolean - Size
Float (or float) - Size
char - Size
9. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Console Application
Class Statement
Equality Operator
Virtual Method Modifier
10. Code which signifies a carriage return. Symbolises a new line in a text box.
ulong - Size
r
Data structures
Stack
11. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
If Statement
Inheritance
Data structures
Namespace
12. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Intermediate Language (IL)
String (or string)
If Statement
uint - Size
13. Windows Presentation Foundation
Object
Operator
Partial Class Modifier
W.P.F
14. 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.
Variable
byte - Size
Encapsulation
Dot Notation
15. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
char - Size
byte - .NET alias
Data structures
JITer
16. Field whose value can never change. Declared with 'const' keyword
Statement
uint - Size
Constant
byte - Size
17. 64 bit integer data
Derived Class
ulong - .NET alias
Int64 - Size
decimal - .NET alias
18. 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.
C#
Conditional Operator
Abstract Method Modifier
bool - Size
19. 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)
Virtual Method Modifier
Boolean Operator
Operator
Array
20. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Float (or float) - Size
Virtual Method Modifier
Primitive
Assembly
21. System.SByte
Derived Class
sbyte - .NET alias
Double (or double) - Size
Namespace
22. Access is limited to the current Assembly and Derived Types
Double (or double) - Size
Private Access Modifier
FCL
Protected Internal Access Modifier
23. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
decimal - .NET alias
Expression
csc.exe
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
24. Restricts access to a Member to the current Class and any Derived Class.
Inheritance
int - Size
JIT
Protected Access Modifier
25. 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
uint - Size
long - Size
Variable (C# requirements)
26. 64 bit - unsigned integer data
long - .NET alias
Just-in-time (JIT
ulong - Size
Inheritance
27. 16 bit - signed integer data (-32768 to 32767)
DateTime
short - Size
NET
Constant
28. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Conditional Operator
Constant
Polymorphism
Assignment Operator
29. 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
ulong - Size
Object
byte - Size
Value Type
30. Mathematical (+ or - or / or %)
byte - .NET alias
If Statement
Operator
decimal - .NET alias
31. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Constant
Variable
long - .NET alias
using
32. System.UInt32
long - .NET alias
Syntax
Object
uint - .NET alias
33. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
decimal - .NET alias
Abstraction
int - .NET alias
Properties
34. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
decimal - .NET alias
Heap
Equality Operator
35. A Class from which other classes can inherit characteristics.
Static Class
int - Size
Array
Base Class
36. 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.
W.P.F
Identifiers
Keyword
Constant
37. When a sub class passes down all the behaviours of the original parent class
Comments
ushort - .NET alias
Inheritance
Properties
38. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Label
Inheritance
Conditional Operator
Object
39. Groups classes together so that they have a unique identifier
JIT
Derived Class
Overloaded Method
Namespace
40. The member type of a Class that performs an action.
csc.exe
int - .NET alias
Method
Decimal (or decimal) - Size
41. Series of instructions which tell a computer what to do.
r
Program
Intermediate Language (IL)
Double (or double) - Size
42. Names reserved by the compiler that coders are not allowed to use as identifiers.
String (or string)
Partial Method Modifier
ulong - .NET alias
Keyword
43. The process of compiling IL source into CPU-native code for execution.
short - Size
Constant
Just-in-time (JIT
Label
44. 64 bit double precision floating point data
Polymorphism
Int32 - Size
Double (or double) - Size
Static Class
45. (== or !=)
using
Label
Equality Operator
NET
46. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Strong Typing
Textbox
decimal - .NET alias
Static Class
47. 8 bit - unsigned byte (0 - 255)
Namespace
byte - Size
If Statement
ulong - .NET alias
48. Text as Unicode characters
Incrementing / Decrementing Variables
sbyte - Size
String (or string)
bool - Size
49. System.Double
Comments
Double (or double) - Size
double - .NET alias
Data structures
50. Command which runs repeatedly while (some) condition is true.
Value Type
JIT
If Statement
While Statement