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






2. System.Int32






3. System.Byte






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






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






6. System.Double






7. System.Int16






8. A Class that cannot be instantiated.






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






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






11. 32 bit integer data






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






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






14. Container for one or more Visual Studio Projects.






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






16. Syntax of a C# Method






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






18. Access is limited to the current Assembly






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






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






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






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






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






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






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






26. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






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






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






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






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






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






33. System.SByte






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






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






36. System.Char






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






38. Framework Class Library






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






40. Just-in-time compilation






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






42. 64 bit double precision floating point data






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. Variables defined by a class






45. Extra information within a method






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






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






48. A Class that can only have Static Members






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






50. Text as Unicode characters