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. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






2. Access is limited to the current Assembly






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






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






5. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






6. 128 bit fixed precision (financial)






7. The "Type" name of data that is stored on the Stack






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






9. System.UInt16






10. A Class that can only have Static Members






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






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






13. Text as Unicode characters






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






15. A Class that cannot be Inherited






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






17. 64 bit double precision floating point data






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






19. System.Char






20. System.Double






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






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






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






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






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






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






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






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






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






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






31. System.Int32






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






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






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






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






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






37. true or false






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






39. Must have a data type






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






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






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






43. 32 bit integer data






44. System.Decimal






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






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






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






48. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






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