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 four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
While Statement
Variable
Inheritance
Assignment Operator
2. true or false
If Statement
Statement
Constant
Boolean - Size
3. (= or += or -= or = or /=)
char - Size
Stack
Assignment Operator
Double (or double) - Size
4. 32 bit integer data
While Statement
int - Size
ushort - Size
Statement
5. 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.
Syntax
Abstraction
Assembly
Incrementing / Decrementing Variables
6. System.Int16
Encapsulation
Assembly
Decimal (or decimal) - Size
short - .NET alias
7. (== or !=)
Int64 - Size
Equality Operator
JIT
ulong - .NET alias
8. A Class that inherits characteristics from another Class.
Heap
Namespace
Common Language Runtime (CLR)
Derived Class
9. 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.
int - Size
Encapsulation
Constant
Double (or double) - Size
10. 128 bit fixed precision (financial)
Decimal (or decimal) - Size
long - .NET alias
Double (or double) - Size
DateTime
11. Introduces a new class. Marked by curly brackets { }
Class Statement
Derived Class
Operator
Conditional Operator
12. A type of statement that produces a value that might be tested or assigned to a variable.
Expression
Namespace
csc.exe
FCL
13. The "Type" name of data that is stored on the Stack
Value Type
Equality Operator
Just-in-time (JIT
using
14. 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.
Overloaded Method
Statement
Variable
Derived Class
15. 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
int - .NET alias
NET
ushort - .NET alias
Dot Notation
16. Most common kind of reference type. They define objects. They must have at least one method and one field.
Reference Type
Protected Access Modifier
Class aka Type
Operator
17. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Variable
Assembly
JITer
Base Class
18. System.Single
Operator
float - .NET alias
ulong - .NET alias
Double (or double) - Size
19. The member type of a Class that performs an action.
Common Language Runtime (CLR)
Method
int - .NET alias
Window.xaml.cs
20. When a sub class passes down all the behaviours of the original parent class
Constructor
Method
Inheritance
Field
21. Mathematical (+ or - or / or %)
Operator
Encapsulation
Protected Internal Access Modifier
References (Visual Studio Solution
22. (&& or || or & or |)
Sealed Class
Conditional Operator
int - .NET alias
Class Statement
23. The process of hiding and restricting access to the implementation details of a data structure.
References (Visual Studio Solution
W.P.F
Assembly
Encapsulation
24. System.Char
Stack
Class Statement
uint - Size
char - .NET alias
25. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
Assignment Operator
C#
short - .NET alias
Double (or double) - Size
26. Keyword which exposes members to other classes OR Identifier which makes program elements public
Public Keyword
long - .NET alias
IDE
Operator
27. Command which runs repeatedly while (some) condition is true.
Stack
Internal Access Modifier
While Statement
Data structures
28. The process of compiling IL source into CPU-native code for execution.
Float (or float) - Size
uint - .NET alias
bool - Size
Just-in-time (JIT
29. Framework Class Library
Variable
FCL
char - .NET alias
Console Application
30. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.
Keyword
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Textbox
Parameter aka Argument
31. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Method
Class aka Type
Assignment Operator
Unary Operator
32. (< or > or <= or >=)
using
Value Type
Relational Operator
Primitive
33. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
DateTime
Statement
Textbox
JITer
34. Code which signifies a carriage return. Symbolises a new line in a text box.
IDE
Encapsulation
r
Operator
35. 64 bit - unsigned integer data
Assignment Operator
ulong - Size
Conditional Operator
String (or string)
36. 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.
Partial Method Modifier
r
Float (or float) - Size
Public Keyword
37. 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
ushort - .NET alias
Field
Object
Encapsulation
38. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Dot Notation
Window.xaml.cs
csc.exe
Sealed Class
39. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
DateTime
Assembly
Data structures
Inheritance
40. Access is limited to the current Assembly
Conditional Operator
Statement
References (Visual Studio Solution
Internal Access Modifier
41. 16 bit - signed integer data (-32768 to 32767)
JITer
short - Size
Variable
References (Visual Studio Solution
42. Compilation of classes. In C# Usually ends in .dll or .exe
Primitive Type
Assembly
Precedence
float - .NET alias
43. A Class from which other classes can inherit characteristics.
Assignment Operator
Constructor
Namespace
Base Class
44. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Comments
char - Size
returnType methodName (parameterList)
If Statement
45. A Member that cannot be accessed/invoked through an Object Instance.
Common Language Runtime (CLR)
byte - Size
float - .NET alias
Static Member
46. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Virtual Method Modifier
Properties
Namespace
W.P.F
47. The .NET run-time environment that enables code to be compiled and executed.
Class
Common Language Runtime (CLR)
If Statement
Int64 - Size
48. System.UInt64
ulong - .NET alias
Field
Window.xaml.cs
Method
49. Allow access to types that exist in outside assemblies.
Partial Class Modifier
ushort - .NET alias
r
References (Visual Studio Solution
50. A Class that cannot be instantiated.
Operator
Textbox
NET
Static Class