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. Just-in-time compilation






2. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






4. System.Int32






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






6. A Class that cannot be Inherited






7. Windows Presentation Foundation






8. Variables defined by a class






9. Container for one or more Visual Studio Projects.






10. System.Single






11. 32 bit integer data






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






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






14. Framework Class Library






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






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






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






18. Syntax of a C# Method






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






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






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






22. 64 bit - unsigned integer data






23. (== or !=)






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






25. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






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






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






28. (< or > or <= or >=)






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






30. (&& or || or & or |)






31. Indicates that the Method can be overridden.






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






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






34. 16 bit- unsigned word (U+0000 to U+ffff)






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






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






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






38. Text as Unicode characters






39. A Class that inherits characteristics from another Class.






40. System.Decimal






41. System.Byte






42. 8 bit - unsigned byte (0 - 255)






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






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






45. true or false






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






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






48. A Class that cannot be instantiated.






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






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