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 lowest level or fundamental data types needed for representing data.






2. A Class that can only have Static Members






3. (&& or || or & or |)






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






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






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






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






8. 32 bit integer data






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






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






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






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






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






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






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






16. true or false






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






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






19. System.SByte






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






21. Container for one or more Visual Studio Projects.






22. System.UInt16






23. System.Char






24. System.Double






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






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






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






28. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.






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






30. 64 bit - unsigned integer data






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






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






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






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






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






36. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






37. Syntax of a C# Method






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






39. 32 bit - unsigned integer data






40. System.Decimal






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






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






43. Most common kind of reference type. They define objects. They must have at least one method and one field.






44. An instance of a class that exists at run-time and is typically referenced via a variable name.






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






46. (== or !=)






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






48. 32 bit integer data






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






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.