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. Keyword which exposes members to other classes OR Identifier which makes program elements public






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






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






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






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






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






7. Framework Class Library






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






9. System.Int64






10. Symbols which transform and combine expressions






11. 32 bit - unsigned integer data






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






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






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






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






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






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






18. true or false






19. 32 bit single precision floating point data






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






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






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






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






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






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






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






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






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






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






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






31. System.Int16






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






33. Command Language Runtime






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






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






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






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






38. System.Byte






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






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






41. A symbol that specifies an operation to be performed on one or more variables.






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






43. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






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






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






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






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






48. Container for one or more Visual Studio Projects.






49. System.Char






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