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. Access is limited to the current Assembly and Derived Types






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






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






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






5. (== or !=)






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. A method that is called whenever an Object is created. The method uses the same name as the Class.






8. A Class that cannot be Inherited






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






10. System.Int16






11. Container for one or more Visual Studio Projects.






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






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






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






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






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






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






18. Command Language Runtime






19. System.UInt16






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






21. The member type of a Class that performs an action.






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






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






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






25. A Class that cannot be instantiated.






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






27. 64 bit integer data






28. (&& or || or & or |)






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






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






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






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






33. Windows Presentation Foundation






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






35. Access is limited to the current Assembly






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






37. 64 bit double precision floating point data






38. A type of statement that produces a value that might be tested or assigned to a variable.






39. A Class that inherits characteristics from another Class.






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






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






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






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






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






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






46. Indicates that the Method can be overridden.






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






48. System.Double






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






50. Extra information within a method