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. 64 bit - unsigned integer data






2. System.Double






3. Container for one or more Visual Studio Projects.






4. 8 bit - signed byte (-128 - 127)






5. (< or > or <= or >=)






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






7. (&& or || or & or |)






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






9. A Class that can only have Static Members






10. Variables defined by a class






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






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






13. Indicates that the Method can be overridden.






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






15. 64 bit integer data






16. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






18. A Class that cannot be Inherited






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






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






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






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






23. Symbols which transform and combine expressions






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






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






26. 32 bit integer data






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






28. Syntax of a C# Method






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






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






31. (== or !=)






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






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






34. System.Single






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






36. A Class that inherits characteristics from another Class.






37. Command which runs repeatedly while (some) condition is true.






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






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






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






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






42. Represents date and time data with a 100 ns resolution






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






44. System.Int32






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






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






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






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






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






50. Command Language Runtime