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. Access is limited to the current Assembly and Derived Types






2. System.Char






3. 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)






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






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






6. Text as Unicode characters






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






8. A Class that cannot be Inherited






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






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






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






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






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






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






15. System.Int32






16. System.Byte






17. (== or !=)






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






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






20. Sits behind GUI (Graphical User Interface) and provides event listeners






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






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






23. (< or > or <= or >=)






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






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






26. Command Language Runtime






27. A Class that can only have Static Members






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






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






30. (&& or || or & or |)






31. Access is limited to the current Assembly






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






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






34. Symbols which transform and combine expressions






35. 64 bit double precision floating point data






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






37. System.Int64






38. Extra information within a method






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






40. Must have a data type






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






42. A Class that cannot be instantiated.






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






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






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






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






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






48. 64 bit - unsigned integer data






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






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