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. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






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






4. Integrated Development Environment






5. Syntax of a C# Method






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






7. (== or !=)






8. A Class that cannot be instantiated.






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






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






11. A Class that cannot be Inherited






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






13. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






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






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






16. Indicates that the Method can be overridden.






17. A Class that inherits characteristics from another Class.






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






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






20. A Class that can only have Static Members






21. 128 bit fixed precision (financial)






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






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






24. 64 bit double precision floating point data






25. System.UInt16






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






27. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






29. System.Double






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






31. System.Int64






32. System.SByte






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






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






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






36. 32 bit integer data






37. Text as Unicode characters






38. true or false






39. System.Int32






40. Container for one or more Visual Studio Projects.






41. 32 bit single precision floating point data






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






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






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






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






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






47. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






48. System.Byte






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






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