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. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






2. Framework Class Library






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






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






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






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






7. Contains the class definitions that allow access to the functionality provided by .NET.






8. 64 bit double precision floating point data






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






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






11. Code which signifies a carriage return. Symbolises a new line in a text box.






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






13. Text as Unicode characters






14. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






15. System.UInt64






16. A Class that cannot be instantiated.






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






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






19. true or false






20. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






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






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






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






24. System.Char






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






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






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






28. 32 bit integer data






29. (&& or || or & or |)






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






31. System.Double






32. (== or !=)






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






34. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






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






36. A Class that can only have Static Members






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






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






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






40. Just-in-time compilation






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






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






43. System.Int64






44. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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






46. Indicates that the Method can be overridden.






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






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






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






50. A Class that inherits characteristics from another Class.