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






2. System.SByte






3. System.Byte






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






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






6. 128 bit fixed precision (financial)






7. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






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






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






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






11. System.UInt16






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






13. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






14. A method that is called whenever an Object is created. The method uses the same name as the Class.






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






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






17. The "Type" name of data that is stored on the Heap






18. 64 bit integer data






19. Allow access to types that exist in outside assemblies.






20. 64 bit - unsigned integer data






21. Framework Class Library






22. Access is limited to the current Assembly






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






24. A Class that cannot be Inherited






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






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






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






28. (== or !=)






29. Windows Presentation Foundation






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






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






32. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






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






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






36. A Class from which other classes can inherit characteristics.






37. System.UInt32






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






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






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






41. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






42. Integrated Development Environment






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






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






45. 32 bit - unsigned integer data






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






47. Container for one or more Visual Studio Projects.






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






49. (&& or || or & or |)






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