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. Compilation of classes. In C# Usually ends in .dll or .exe






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






3. 16 bit - unsigned integer data (0 to 65535)






4. System.UInt64






5. Text as Unicode characters






6. The process of hiding and restricting access to the implementation details of a data structure.






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






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






9. Microsoft's generic software framework for application development.






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






11. System.Double






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






13. 16 bit- unsigned word (U+0000 to U+ffff)






14. System.Decimal






15. (< or > or <= or >=)






16. A Class that cannot be Inherited






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






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






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






20. System.Byte






21. System.Int64






22. System.Char






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






25. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






26. 32 bit integer data






27. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






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






29. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






30. Indicates that the Method can be overridden.






31. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






32. Allows the definition of a Class to span multiple files (within the same Project)






33. 64 bit integer data






34. Syntax of a C# Method






35. Restricts access to a Member to the current Class.






36. Represents date and time data with a 100 ns resolution






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






38. Groups classes together so that they have a unique identifier






39. System.UInt32






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






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






42. Command Language Runtime






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






44. 64 bit - unsigned integer data






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






46. A representation of an area in the computer memory in which a value of a particular data type can be stored.






47. Something that has a different number of parameters to it's predecessor






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






49. Framework Class Library






50. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).