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. Text as Unicode characters






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






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






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






5. Must have a data type






6. Variables defined by a class






7. 64 bit integer data






8. Framework Class Library






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






10. System.Int32






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






12. A Class that cannot be Inherited






13. Integrated Development Environment






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






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






16. (< or > or <= or >=)






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






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






19. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






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






22. 16 bit- unsigned word (U+0000 to U+ffff)






23. (== or !=)






24. System.UInt32






25. Container for one or more Visual Studio Projects.






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






27. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






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






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






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






32. 16 bit - unsigned integer data (0 to 65535)






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






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






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






36. System.Decimal






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






38. System.Char






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






40. A Class that can only have Static Members






41. (&& or || or & or |)






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






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






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






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






46. The .NET run-time environment that enables code to be compiled and executed.






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






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






49. System.Int16






50. System.UInt64