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. 16 bit - unsigned integer data (0 to 65535)






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






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






4. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.






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






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






7. A Class that inherits characteristics from another Class.






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






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






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






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






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






13. Access is limited to the current Assembly






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






15. Integrated Development Environment






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






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






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






19. A Class that cannot be Inherited






20. Indicates that the Method can be overridden.






21. A Class that cannot be instantiated.






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






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






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






25. (&& or || or & or |)






26. System.Char






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






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






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






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






31. 64 bit integer data






32. System.Single






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






34. (== or !=)






35. System.Decimal






36. 128 bit fixed precision (financial)






37. 32 bit integer data






38. System.Byte






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






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






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






42. 64 bit integer data






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






44. 64 bit double precision floating point data






45. Windows Presentation Foundation






46. Sits behind GUI (Graphical User Interface) and provides event listeners






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






48. System.UInt16






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






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