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






2. Introduces a new class. Marked by curly brackets { }






3. System.Single






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






5. Must have a data type






6. 32 bit - unsigned integer data






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






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






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






10. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






11. 64 bit integer data






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






13. Indicates that the Method can be overridden.






14. Just-in-time compilation






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






16. System.Double






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






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






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






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






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






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






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






25. Windows Presentation Foundation






26. System.Decimal






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






28. Integrated Development Environment






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






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






31. 32 bit single precision floating point data






32. (< or > or <= or >=)






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






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






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






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






37. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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






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






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






41. System.UInt64






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






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






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






45. System.SByte






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






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






48. System.UInt32






49. Container for one or more Visual Studio Projects.






50. System.Byte