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






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






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






4. System.Double






5. System.Decimal






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






7. 64 bit double precision floating point data






8. A Class that can only have Static Members






9. System.Char






10. System.Single






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






12. (== or !=)






13. Code which implements GUI (graphical User Interface).






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






15. 64 bit - unsigned integer data






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






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






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






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






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






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






22. Just-in-time compilation






23. Text as Unicode characters






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






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






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






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






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






29. System.Int32






30. Access is limited to the current Assembly






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






32. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






33. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






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






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






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






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






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






39. System.Int16






40. Extra information within a method






41. The member type of a Class that performs an action.






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






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






44. 128 bit fixed precision (financial)






45. System.Byte






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






47. true or false






48. A Class that cannot be instantiated.






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






50. Restricts access to a Member to the current Class and any Derived Class.