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. When a sub class passes down all the behaviours of the original parent class






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






3. System.SByte






4. A Class that can only have Static Members






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






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






7. System.UInt64






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






9. 32 bit - unsigned integer data






10. Integrated Development Environment






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






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






13. System.Int32






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






15. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






16. System.Double






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






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






19. System.Byte






20. System.UInt16






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






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






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






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






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






26. 8 bit - signed byte (-128 - 127)






27. (== or !=)






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






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






30. Indicates that the Method can be overridden.






31. Must have a data type






32. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






33. System.Int64






34. 64 bit - unsigned integer data






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






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






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






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






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






40. true or false






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






42. System.Single






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






44. 128 bit fixed precision (financial)






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






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






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






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






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






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