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. An instance of a class that exists at run-time and is typically referenced via a variable name.






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






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






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






5. 32 bit - unsigned integer data






6. Just-in-time compilation






7. System.Decimal






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






9. Compilation of classes. In C# Usually ends in .dll or .exe






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






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






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






13. System.Single






14. A Class that cannot be Inherited






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






16. (&& or || or & or |)






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






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






19. A type of statement that produces a value that might be tested or assigned to a variable.






20. 32 bit integer data






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






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






23. Windows Presentation Foundation






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






25. A Class that inherits characteristics from another Class.






26. true or false






27. System.UInt64






28. Syntax of a C# Method






29. Must have a data type






30. System.Int64






31. 32 bit integer data






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






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






34. System.Int16






35. System.Double






36. System.UInt32






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






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






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






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






41. Extra information within a method






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






43. The member type of a Class that performs an action.






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






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






46. System.Char






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






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






49. true or false






50. Symbols which transform and combine expressions