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. Keyword which exposes members to other classes OR Identifier which makes program elements public






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






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






4. Command Language Runtime






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






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






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






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






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






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






11. The process of compiling IL source into CPU-native code for execution.






12. 32 bit - unsigned integer data






13. Just-in-time compilation






14. Must have a data type






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






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






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






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






19. Series of instructions which tell a computer what to do.






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






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






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






23. System.Char






24. System.Single






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






26. A Class that cannot be instantiated.






27. true or false






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






29. (< or > or <= or >=)






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






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






32. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.






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






34. (== or !=)






35. 128 bit fixed precision (financial)






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






37. Mathematical (+ or - or / or %)






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






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






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






41. Extra information within a method






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






43. Access is limited to the current Assembly






44. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






45. Variables defined by a class






46. System.SByte






47. System.Int16






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






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






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