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. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






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






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






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






6. System.Char






7. Text as Unicode characters






8. 32 bit - unsigned integer data






9. A Class that cannot be Inherited






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






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. Just-in-time compilation






13. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






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






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






17. 64 bit - unsigned integer data






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






19. Indicates that the Method can be overridden.






20. true or false






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






22. (== or !=)






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






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






25. Allow access to types that exist in outside assemblies.






26. Syntax of a C# Method






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






28. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






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






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






31. true or false






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






33. 32 bit integer data






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






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






36. (= or += or -= or = or /=)






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






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






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. System.Byte






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






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






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






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






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






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






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






48. Windows Presentation Foundation






49. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






50. System.UInt32