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. Text as Unicode characters






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






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






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






5. Must have a data type






6. System.Int64






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






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






9. 64 bit integer data






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






11. 8 bit - signed byte (-128 - 127)






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






13. A type of statement that produces a value that might be tested or assigned to a variable.






14. Variables defined by a class






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






16. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






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






19. Indicates that the Method can be overridden.






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






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






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






23. Access is limited to the current Assembly






24. The lowest level or fundamental data types needed for representing data.






25. A Class that can only have Static Members






26. 32 bit integer data






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






28. true or false






29. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






31. System.Single






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






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






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






35. System.UInt32






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






37. The "Type" name of data that is stored on the Stack






38. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






39. Contains the class definitions that allow access to the functionality provided by .NET.






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






41. (&& or || or & or |)






42. Compilation of classes. In C# Usually ends in .dll or .exe






43. A Class that cannot be instantiated.






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






45. 32 bit single precision floating point data






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






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






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






49. Framework Class Library






50. (== or !=)