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. 8 bit - unsigned byte (0 - 255)






2. 128 bit fixed precision (financial)






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






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






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






6. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






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






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






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






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






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






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






13. Access is limited to the current Assembly






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






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






16. 64 bit double precision floating point data






17. Command Language Runtime






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






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






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






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






22. System.SByte






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






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






25. 64 bit - unsigned integer data






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






27. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






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






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






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






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






32. A Class that can only have Static Members






33. 64 bit integer data






34. (== or !=)






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






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






37. Symbols which transform and combine expressions






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






39. System.Single






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






41. true or false






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






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






44. 32 bit - unsigned integer data






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






46. Framework Class Library






47. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






48. System.UInt64






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






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