Test your basic knowledge |

C# Programming Basics

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. System.Decimal






2. Field whose value can never change. Declared with 'const' keyword






3. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






4. 32 bit - unsigned integer data






5. 64 bit integer data






6. Names reserved by the compiler that coders are not allowed to use as identifiers.






7. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






8. System.Int16






9. System.Char






10. Syntax of a C# Method






11. The .NET run-time environment that enables code to be compiled and executed.






12. System.Int32






13. System.Single






14. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






15. Symbols which transform and combine expressions






16. A symbol that specifies an operation to be performed on one or more variables.






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.).






18. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






19. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






20. Command Language Runtime






21. count = count+1 or count++ or count__. Both count variables are Unary Operators






22. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






23. 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






24. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






25. 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






26. Represents the encapsulation of data and behaviors into a single unit.






27. A Class that inherits characteristics from another Class.






28. When a sub class passes down all the behaviours of the original parent class






29. 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.






30. System.UInt32






31. 128 bit fixed precision (financial)






32. Most common kind of reference type. They define objects. They must have at least one method and one field.






33. A Class that can only have Static Members






34. Mathematical (+ or - or / or %)






35. Code which signifies a carriage return. Symbolises a new line in a text box.






36. An instance of a class that exists at run-time and is typically referenced via a variable name.






37. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






38. Keyword which exposes members to other classes OR Identifier which makes program elements public






39. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






40. (= or += or -= or = or /=)






41. The member type of a Class that performs an action.






42. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






43. 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'.






44. 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.






45. Restricts access to a Member to the current Class and any Derived Class.






46. The process of compiling IL source into CPU-native code for execution.






47. Access is limited to the current Assembly and Derived Types






48. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






49. Variables defined by a class






50. Command which runs repeatedly while (some) condition is true.