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. (= or += or -= or = or /=)






3. Text as Unicode characters






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






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






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






7. 64 bit - unsigned integer data






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






9. 32 bit integer data






10. Indicates that the Method can be overridden.






11. A Member that cannot be accessed/invoked through an Object Instance.






12. A Class that can only have Static Members






13. Introduces a new class. Marked by curly brackets { }






14. Windows Presentation Foundation






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






16. Framework Class Library






17. A Class that cannot be instantiated.






18. A Class that inherits characteristics from another Class.






19. System.Decimal






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






21. System.Single






22. A Class that cannot be Inherited






23. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






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






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






27. System.Int32






28. 128 bit fixed precision (financial)






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






30. Command Language Runtime






31. Symbols which transform and combine expressions






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






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






34. (< or > or <= or >=)






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






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






37. System.Byte






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






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






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






41. 64 bit integer data






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






43. Only requires one operand usually a count+1 or a count++ or a count--






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






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






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






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






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






49. true or false






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