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






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






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






4. A Class that can only have Static Members






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






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






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






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






9. 32 bit single precision floating point data






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






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






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






13. Command Language Runtime






14. System.UInt32






15. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






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






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






18. Syntax of a C# Method






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






20. Mathematical (+ or - or / or %)






21. true or false






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






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






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






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






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






27. Series of instructions which tell a computer what to do.






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






29. Integrated Development Environment






30. 32 bit - unsigned integer data






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






32. 16 bit - signed integer data (-32768 to 32767)






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






34. A Class that inherits characteristics from another Class.






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






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






37. Access is limited to the current Assembly






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






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






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






41. Text as Unicode characters






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






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






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






45. System.Byte






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






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






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






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






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