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. A Member that cannot be accessed/invoked through an Object Instance.






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






3. System.Double






4. Variables defined by a class






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






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






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






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






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






10. A Class that cannot be instantiated.






11. Command Language Runtime






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






13. 32 bit single precision floating point data






14. Integrated Development Environment






15. The "Type" name of data that is stored on the Stack






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






17. true or false






18. Syntax of a C# Method






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






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






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






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






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






24. 64 bit double precision floating point data






25. Just-in-time compilation






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






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






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






29. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






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






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






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






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






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






35. Indicates that the Method can be overridden.






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






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. Names reserved by the compiler that coders are not allowed to use as identifiers.






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






41. System.UInt16






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






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






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






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






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






47. true or false






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






49. 64 bit - unsigned integer data






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