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. Symbols which transform and combine expressions






2. Extra information within a method






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






4. A Class that can only have Static Members






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






6. A Class that cannot be instantiated.






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






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






9. System.Decimal






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






11. true or false






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






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






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






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






16. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does






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






18. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






19. 32 bit integer data






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






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






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






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






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






25. The .NET run-time environment that enables code to be compiled and executed.






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






27. System.UInt32






28. System.Int32






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






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






31. System.Int16






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






33. System.Single






34. System.UInt64






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






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






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






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






39. Must have a data type






40. 32 bit integer data






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






42. 128 bit fixed precision (financial)






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






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






45. Syntax of a C# Method






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






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






48. Variables defined by a class






49. System.Byte






50. System.Int64