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. Field whose value can never change. Declared with 'const' keyword






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






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






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






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






6. 64 bit integer data






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






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






9. Access is limited to the current Assembly






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






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






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






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






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






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






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






17. (< or > or <= or >=)






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






19. Windows Presentation Foundation






20. Integrated Development Environment






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






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






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






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






25. System.Decimal






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






27. System.Char






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






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






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






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






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






33. System.Byte






34. Symbols which transform and combine expressions






35. 32 bit single precision floating point data






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






37. System.Double






38. 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'.






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






40. System.Int32






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






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






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






44. A Class that cannot be Inherited






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






46. Must have a data type






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






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






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






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