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. Allows the definition of a Class to span multiple files (within the same Project)






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






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






4. System.Single






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






6. The "Type" name of data that is stored on the Heap






7. System.Int16






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






9. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






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






12. A Class that cannot be Inherited






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






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






15. Integrated Development Environment






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






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






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






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






20. 16 bit - signed integer data (-32768 to 32767)






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






22. 32 bit integer data






23. A Class that inherits characteristics from another Class.






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






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






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






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






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






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






30. System.UInt32






31. Framework Class Library






32. 32 bit single precision floating point data






33. System.Byte






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






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






36. 32 bit - unsigned integer data






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






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






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






40. 128 bit fixed precision (financial)






41. System.Double






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






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






44. true or false






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






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






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






48. A Class that cannot be instantiated.






49. Syntax of a C# Method






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