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. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






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






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






4. Microsoft's generic software framework for application development.






5. Framework Class Library






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






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






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






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






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






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






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






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






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






15. Just-in-time compilation






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






17. System.Int16






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






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






20. 128 bit fixed precision (financial)






21. true or false






22. A Class that cannot be Inherited






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






24. Syntax of a C# Method






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






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






27. System.SByte






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






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






30. Symbols which transform and combine expressions






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






32. System.UInt64






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






34. Variables defined by a class






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






36. Represents date and time data with a 100 ns resolution






37. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






39. 64 bit - unsigned integer data






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






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






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






43. System.Byte






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






45. A Class that cannot be instantiated.






46. (== or !=)






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






48. 64 bit integer data






49. 32 bit integer data






50. Command Language Runtime