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. Series of instructions which tell a computer what to do.






2. Command Language Runtime






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






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. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






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






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






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






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






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






11. 64 bit integer data






12. Just-in-time compilation






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






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






15. The process of compiling IL source into CPU-native code for execution.






16. Extra information within a method






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






18. (&& or || or & or |)






19. Something that has a different number of parameters to it's predecessor






20. A Class that cannot be instantiated.






21. A Class that cannot be Inherited






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






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






24. 32 bit integer data






25. Access is limited to the current Assembly






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






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






28. (== or !=)






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






30. System.SByte






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






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






33. Integrated Development Environment






34. 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'.






35. When a sub class passes down all the behaviours of the original parent class






36. true or false






37. 16 bit - unsigned integer data (0 to 65535)






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






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






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






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






42. Symbols which transform and combine expressions






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






44. System.Int32






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






46. System.Char






47. Used to display text that end user does not need to edit.






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






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






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