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. Represents the encapsulation of data and behaviors into a single unit.






2. System.Int64






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






4. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






6. Text as Unicode characters






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






8. Integrated Development Environment






9. System.Int32






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






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






12. System.UInt64






13. Indicates that the Method can be overridden.






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






15. (&& or || or & or |)






16. Access is limited to the current Assembly






17. Windows Presentation Foundation






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






19. 128 bit fixed precision (financial)






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






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






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






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






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






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






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






27. (< or > or <= or >=)






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






29. System.Double






30. System.Char






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






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






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






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






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






36. When a sub class passes down all the behaviours of the original parent class






37. 64 bit integer data






38. Access is limited to the current Assembly and Derived Types






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






40. Allows the definition of a Class to span multiple files (within the same Project)






41. Command Language Runtime






42. A Class that cannot be Inherited






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






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






45. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






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






48. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






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






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