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. Must have a data type






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






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






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






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






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






7. 32 bit integer data






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






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






10. 32 bit single precision floating point data






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






12. Windows Presentation Foundation






13. A Class that cannot be Inherited






14. 64 bit integer data






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






16. Syntax of a C# Method






17. Text as Unicode characters






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






19. Command Language Runtime






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






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






22. System.Decimal






23. System.SByte






24. Access is limited to the current Assembly






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






26. (&& or || or & or |)






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






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






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






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






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






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






33. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






34. System.UInt16






35. true or false






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






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






38. System.Single






39. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






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






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






42. 32 bit - unsigned integer data






43. System.Double






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






45. Variables defined by a class






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






47. Container for one or more Visual Studio Projects.






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






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






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