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. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Double (or double) - Size
returnType methodName (parameterList)
Expression
Statement
2. 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.
Abstract Method Modifier
Heap
Strong Typing
Int32 - Size
3. Syntax of a C# Method
returnType methodName (parameterList)
Method
Strong Typing
r
4. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Statement
csc.exe
While Statement
long - Size
5. Allow access to types that exist in outside assemblies.
Statement
References (Visual Studio Solution
uint - Size
Syntax
6. 64 bit - unsigned integer data
Operator
Variable
ulong - Size
int - Size
7. Extra information within a method
If Statement
Parameter aka Argument
C#
Abstraction
8. System.UInt32
Window.xaml.cs
Data structures
csc.exe
uint - .NET alias
9. Access is limited to the current Assembly and Derived Types
Variable
Protected Internal Access Modifier
uint - Size
r
10. 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
r
Private Access Modifier
Object
Variable (C# requirements)
11. Mathematical (+ or - or / or %)
Operator
Parameter aka Argument
double - .NET alias
short - .NET alias
12. Only requires one operand usually a count+1 or a count++ or a count--
Private Access Modifier
ulong - .NET alias
Unary Operator
Inheritance
13. Container for one or more Visual Studio Projects.
DateTime
Visual Studio Solution
C#
decimal - .NET alias
14. Represents the encapsulation of data and behaviors into a single unit.
IDE
Class
Abstraction
float - .NET alias
15. Most common kind of reference type. They define objects. They must have at least one method and one field.
Conditional Operator
Class Statement
Class aka Type
decimal - .NET alias
16. System.Int64
returnType methodName (parameterList)
Double (or double) - Size
long - .NET alias
Base Class
17. (== or !=)
bool - Size
If Statement
Equality Operator
Private Access Modifier
18. 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.
ushort - .NET alias
returnType methodName (parameterList)
Identifiers
uint - .NET alias
19. 16 bit - unsigned integer data (0 to 65535)
int - .NET alias
String (or string)
ushort - Size
Inheritance
20. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Abstraction
sbyte - Size
Encapsulation
Internal Access Modifier
21. Introduces a new class. Marked by curly brackets { }
byte - Size
short - Size
double - .NET alias
Class Statement
22. Used to display text that end user does not need to edit.
Inheritance
Abstract Method Modifier
Variable (C# requirements)
Label
23. 32 bit integer data
Assembly
int - Size
Variable (C# requirements)
Statement
24. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Encapsulation
Primitive Type
Data structures
Inheritance
25. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
float - .NET alias
Namespace
returnType methodName (parameterList)
double - .NET alias
26. Framework Class Library
Label
NET
FCL
CLR
27. 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.
Private Access Modifier
Variable
Visual Studio Solution
decimal - .NET alias
28. Sits behind GUI (Graphical User Interface) and provides event listeners
Window.xaml.cs
Variable
Method
Derived Class
29. Keyword which exposes members to other classes OR Identifier which makes program elements public
short - Size
Overloaded Method
Statement
Public Keyword
30. A Class that cannot be Inherited
Framework Class Library (FCL)
char - .NET alias
Base Class
Sealed Class
31. Access is limited to the current Assembly
Array
Internal Access Modifier
References (Visual Studio Solution
While Statement
32. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Data structures
Statement
Intermediate Language (IL)
Internal Access Modifier
33. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Public Keyword
Primitive
Array
Virtual Method Modifier
34. count = count+1 or count++ or count__. Both count variables are Unary Operators
int - Size
Variable
Incrementing / Decrementing Variables
Value Type
35. System.UInt16
Protected Internal Access Modifier
Namespace
Operator
ushort - .NET alias
36. Something that has a different number of parameters to it's predecessor
Overloaded Method
Primitive
Console Application
Field
37. 16 bit - signed integer data (-32768 to 32767)
CLR
float - .NET alias
Dot Notation
short - Size
38. 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
sbyte - .NET alias
returnType methodName (parameterList)
short - .NET alias
39. 8 bit - unsigned byte (0 - 255)
byte - Size
Expression
Assembly
Textbox
40. An instance of a class that exists at run-time and is typically referenced via a variable name.
Precedence
using
Method
Object
41. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Internal Access Modifier
Relational Operator
char - .NET alias
Intermediate Language (IL)
42. 16 bit- unsigned word (U+0000 to U+ffff)
Abstract Method Modifier
Int64 - Size
Equality Operator
char - Size
43. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
Identifiers
double - .NET alias
C#
long - Size
44. Allows the definition of a Class to span multiple files (within the same Project)
Protected Access Modifier
float - .NET alias
Partial Class Modifier
decimal - .NET alias
45. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Virtual Method Modifier
short - .NET alias
Console Application
Primitive Type
46. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
Encapsulation
Stack
Base Class
47. Code which implements GUI (graphical User Interface).
Operator
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
C#
Intermediate Language (IL)
48. Code which signifies a carriage return. Symbolises a new line in a text box.
Field
r
Console Application
Operator
49. The process of compiling IL source into CPU-native code for execution.
byte - Size
Just-in-time (JIT
sbyte - Size
char - Size
50. Represents date and time data with a 100 ns resolution
DateTime
Encapsulation
Expression
Stack