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. A Class that can only have Static Members






2. System.UInt32






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






4. Must have a data type






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






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






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






8. System.SByte






9. Used to display text that end user does not need to edit.






10. 32 bit single precision floating point data






11. Command Language Runtime






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






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






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






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






16. 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)






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






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






19. 64 bit - unsigned integer data






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






21. System.Double






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






23. System.UInt64






24. Windows Presentation Foundation






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






26. 32 bit integer data






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






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






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






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






31. 32 bit - unsigned integer data






32. Syntax of a C# Method






33. System.Int32






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






35. Container for one or more Visual Studio Projects.






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






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






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






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






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






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






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






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






44. A Class that cannot be instantiated.






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






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






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






48. Text as Unicode characters






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






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