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. 64 bit - unsigned integer data






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






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






4. System.Double






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






6. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






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






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






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






10. System.UInt16






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






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






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






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






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






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






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






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






19. A Class that can only have Static Members






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






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






22. Command Language Runtime






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






24. System.Int16






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






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






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






28. true or false






29. 64 bit integer data






30. Most common kind of reference type. They define objects. They must have at least one method and one field.






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






32. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






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






34. (== or !=)






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






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






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






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






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






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






41. (&& or || or & or |)






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. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






45. Syntax of a C# Method






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






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






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






49. 64 bit double precision floating point data






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