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 "Type" name of data that is stored on the Stack






2. System.Double






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






4. 32 bit - unsigned integer data






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






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






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






8. Container for one or more Visual Studio Projects.






9. (< or > or <= or >=)






10. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






12. 128 bit fixed precision (financial)






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






14. Symbols which transform and combine expressions






15. System.Decimal






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






17. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






18. System.UInt32






19. 32 bit integer data






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






21. true or false






22. A Class that can only have Static Members






23. (== or !=)






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






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






26. 16 bit- unsigned word (U+0000 to U+ffff)






27. A type of statement that produces a value that might be tested or assigned to a variable.






28. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






29. Syntax of a C# Method






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






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






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






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






34. A Class that inherits characteristics from another Class.






35. System.Byte






36. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does






37. 64 bit integer data






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






39. A Class that cannot be Inherited






40. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






41. Access is limited to the current Assembly and Derived Types






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






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






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






45. A method that is called whenever an Object is created. The method uses the same name as the Class.






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






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






48. Represents the encapsulation of data and behaviors into a single unit.






49. Indicates that the Method can be overridden.






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