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. 16 bit - signed integer data (-32768 to 32767)






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






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






4. Text as Unicode characters






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






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






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






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






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






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






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






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






13. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






14. 32 bit integer data






15. System.UInt16






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






17. 32 bit integer data






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






19. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






20. true or false






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






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






23. Series of instructions which tell a computer what to do.






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






25. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






26. Integrated Development Environment






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






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






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






30. Must have a data type






31. (== or !=)






32. Container for one or more Visual Studio Projects.






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






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






35. true or false






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






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






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






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






40. (&& or || or & or |)






41. Extra information within a method






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






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






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






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






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






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






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






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






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