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. 128 bit fixed precision (financial)






2. (< or > or <= or >=)






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






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






5. Allow access to types that exist in outside assemblies.






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






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






8. System.Decimal






9. Extra information within a method






10. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






12. System.Char






13. A Class that can only have Static Members






14. Windows Presentation Foundation






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






16. System.UInt32






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






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






19. Only requires one operand usually a count+1 or a count++ or a count--






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






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






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






23. System.SByte






24. Access is limited to the current Assembly






25. A Class that cannot be Inherited






26. true or false






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






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






29. A symbol that specifies an operation to be performed on one or more variables.






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






31. 64 bit double precision floating point data






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






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






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






35. Text as Unicode characters






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






37. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






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






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






40. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






41. 64 bit integer data






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






43. 64 bit - unsigned integer data






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






45. System.UInt16






46. Must have a data type






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






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






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






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