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 concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






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






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






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






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






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






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






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






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






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






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






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






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






15. System.Int32






16. A Class that inherits characteristics from another Class.






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






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






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






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






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






22. (< or > or <= or >=)






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






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






25. Extra information within a method






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






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






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






29. Indicates that the Method can be overridden.






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






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






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






33. 64 bit double precision floating point data






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






35. 16 bit - signed integer data (-32768 to 32767)






36. Restricts access to a Member to the current Class.






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






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






39. A Class that cannot be Inherited






40. 64 bit - unsigned integer data






41. A Class that can only have Static Members






42. Integrated Development Environment






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






44. System.Char






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






46. System.UInt16






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






48. System.Decimal






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






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