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. The .NET run-time environment that enables code to be compiled and executed.






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






3. Symbols which transform and combine expressions






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






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






6. System.UInt32






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






8. Command Language Runtime






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






10. Container for one or more Visual Studio Projects.






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






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






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






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






15. (&& or || or & or |)






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






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






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






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






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






21. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






23. Indicates that the Method can be overridden.






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






25. System.Single






26. (== or !=)






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






28. 128 bit fixed precision (financial)






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






30. System.UInt16






31. A Class that cannot be instantiated.






32. Microsoft's generic software framework for application development.






33. A Member that cannot be accessed/invoked through an Object Instance.






34. Must have a data type






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






36. Variables defined by a class






37. Keyword which exposes members to other classes OR Identifier which makes program elements public






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






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






40. System.Int32






41. 64 bit integer data






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






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






44. 64 bit double precision floating point data






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






46. Syntax of a C# Method






47. System.Int64






48. A Class that can only have Static Members






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






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