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. Names reserved by the compiler that coders are not allowed to use as identifiers.
Program
Precedence
Unary Operator
Keyword
2. Keyword which exposes members to other classes OR Identifier which makes program elements public
Value Type
Expression
Program
Public Keyword
3. Access is limited to the current Assembly and Derived Types
Parameter aka Argument
Partial Method Modifier
JITer
Protected Internal Access Modifier
4. Compilation of classes. In C# Usually ends in .dll or .exe
Assembly
Inheritance
Internal Access Modifier
Reference Type
5. 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.
uint - Size
CLR
Variable
Partial Method Modifier
6. Allow access to types that exist in outside assemblies.
Class
References (Visual Studio Solution
Primitive Type
Console Application
7. Integrated Development Environment
Framework Class Library (FCL)
IDE
Namespace
long - .NET alias
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.
Encapsulation
Textbox
int - .NET alias
Method
9. The .NET run-time environment that enables code to be compiled and executed.
Object
Common Language Runtime (CLR)
Object
char - .NET alias
10. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
long - Size
Static Class
Float (or float) - Size
Intermediate Language (IL)
11. A Class that cannot be instantiated.
Abstract Method Modifier
Expression
Visual Studio Solution
Static Class
12. An instance of a class that exists at run-time and is typically referenced via a variable name.
String (or string)
char - Size
Object
int - Size
13. 64 bit - unsigned integer data
Variable
ulong - Size
Intermediate Language (IL)
Static Class
14. Indicates that the Method can be overridden.
Properties
Virtual Method Modifier
Common Language Runtime (CLR)
Derived Class
15. 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.
Static Class
Object
Internal Access Modifier
Identifiers
16. (&& or || or & or |)
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Namespace
Conditional Operator
Abstraction
17. System.Int64
sbyte - .NET alias
uint - .NET alias
Encapsulation
long - .NET alias
18. 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 Statement
Statement
Primitive Type
Syntax
19. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Constructor
String (or string)
Console Application
Partial Method Modifier
20. Series of instructions which tell a computer what to do.
Static Member
Method
Program
Constructor
21. Represents date and time data with a 100 ns resolution
Unary Operator
Partial Class Modifier
DateTime
decimal - .NET alias
22. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
C#
Public Keyword
Private Access Modifier
ulong - Size
23. Something that has a different number of parameters to it's predecessor
uint - .NET alias
Overloaded Method
Float (or float) - Size
Identifiers
24. System.SByte
sbyte - .NET alias
bool - Size
char - Size
Dot Notation
25. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
using
Just-in-time (JIT
ushort - Size
Abstract Class Modifier
26. 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
float - .NET alias
byte - .NET alias
Expression
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
Encapsulation
Object
Class
Abstraction
28. A method that is called whenever an Object is created. The method uses the same name as the Class.
Constructor
Syntax
Primitive
ushort - .NET alias
29. A Class that cannot be Inherited
long - Size
While Statement
Float (or float) - Size
Sealed Class
30. Sits behind GUI (Graphical User Interface) and provides event listeners
Statement
short - Size
Boolean Operator
Window.xaml.cs
31. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
FCL
Expression
Assembly
Operator
32. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class
Dot Notation
Expression
Statement
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
33. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
r
ulong - Size
Statement
Encapsulation
34. Variables defined by a class
Int32 - Size
Framework Class Library (FCL)
Field
Unary Operator
35. System.Int32
Float (or float) - Size
Data structures
int - .NET alias
uint - .NET alias
36. Restricts access to a Member to the current Class.
Sealed Class
Private Access Modifier
Internal Access Modifier
Constant
37. Microsoft's generic software framework for application development.
Primitive Type
NET
Relational Operator
decimal - .NET alias
38. 64 bit integer data
csc.exe
Incrementing / Decrementing Variables
long - Size
Inheritance
39. Groups classes together so that they have a unique identifier
C#
Protected Access Modifier
sbyte - .NET alias
Namespace
40. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Assembly
Method
Decimal (or decimal) - Size
Data structures
41. 16 bit - unsigned integer data (0 to 65535)
char - Size
ushort - Size
Derived Class
Parameter aka Argument
42. Allows the definition of a Class to span multiple files (within the same Project)
Partial Class Modifier
Polymorphism
Window.xaml.cs
FCL
43. System.Double
Variable
double - .NET alias
float - .NET alias
Protected Access Modifier
44. Only requires one operand usually a count+1 or a count++ or a count--
Visual Studio Solution
Protected Access Modifier
Unary Operator
char - Size
45. Syntax of a C# Method
Class aka Type
Intermediate Language (IL)
returnType methodName (parameterList)
Inheritance
46. The process of compiling IL source into CPU-native code for execution.
Just-in-time (JIT
Textbox
Array
Intermediate Language (IL)
47. Must have a data type
Object
Variable (C# requirements)
Textbox
Incrementing / Decrementing Variables
48. Framework Class Library
Inheritance
Operator
Abstraction
FCL
49. System.UInt16
char - .NET alias
ushort - .NET alias
Abstraction
long - Size
50. 64 bit integer data
Int64 - Size
Dot Notation
JIT
byte - .NET alias