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. Contains the class definitions that allow access to the functionality provided by .NET.






2. 64 bit - unsigned integer data






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






4. Windows Presentation Foundation






5. System.UInt16






6. System.Char






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






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






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






10. A Class that can only have Static Members






11. System.Byte






12. Integrated Development Environment






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






14. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






16. true or false






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






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






19. 64 bit integer data






20. System.Single






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






22. Code which signifies a carriage return. Symbolises a new line in a text box.






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






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






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






26. 32 bit single precision floating point data






27. Variables defined by a class






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






29. System.UInt32






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






31. System.Int16






32. Command Language Runtime






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






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






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






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






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






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






39. Must have a data type






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






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






42. (== or !=)






43. Text as Unicode characters






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






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






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






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






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






49. Indicates that the Method can be overridden.






50. Container for one or more Visual Studio Projects.