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. Represents the encapsulation of data and behaviors into a single unit.






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






3. Windows Presentation Foundation






4. true or false






5. Allows the definition of a Class to span multiple files (within the same Project)






6. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






7. true or false






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






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






10. 128 bit fixed precision (financial)






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






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






13. 64 bit integer data






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






15. A Class that cannot be Inherited






16. Container for one or more Visual Studio Projects.






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






18. Framework Class Library






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






20. 32 bit integer data






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






22. A Class that cannot be instantiated.






23. Symbols which transform and combine expressions






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






25. A Class that can only have Static Members






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






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






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






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






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






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






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






33. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






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






35. A Class that inherits characteristics from another Class.






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






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






38. Must have a data type






39. System.Int64






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






41. System.Double






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






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






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






45. System.Byte






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






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






48. System.SByte






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






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