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. The member type of a Class that performs an action.






2. 64 bit integer data






3. System.Int16






4. 32 bit single precision floating point data






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






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






7. An instance of a class that exists at run-time and is typically referenced via a variable name.






8. Extra information within a method






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






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






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






12. Code which signifies a carriage return. Symbolises a new line in a text box.






13. Syntax of a C# Method






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






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






16. (&& or || or & or |)






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






18. Symbols which transform and combine expressions






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






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






21. System.UInt32






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






23. Access is limited to the current Assembly






24. 64 bit integer data






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






26. Indicates that the Method can be overridden.






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






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






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






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






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






32. 32 bit - unsigned integer data






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






34. System.Single






35. System.Double






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






37. 64 bit - unsigned integer data






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






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






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






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






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






43. A Class that cannot be Inherited






44. 32 bit integer data






45. 128 bit fixed precision (financial)






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






47. System.Byte






48. true or false






49. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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