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. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






2. 64 bit - unsigned integer data






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






4. System.Single






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






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






7. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






8. System.Double






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






10. Indicates that the Method can be overridden.






11. System.Decimal






12. A Class that inherits characteristics from another Class.






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






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






15. 32 bit integer data






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






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






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






19. (&& or || or & or |)






20. System.Char






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






22. Access is limited to the current Assembly






23. The process of hiding and restricting access to the implementation details of a data structure.






24. System.UInt16






25. Container for one or more Visual Studio Projects.






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. A type of statement that produces a value that might be tested or assigned to a variable.






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






29. (== or !=)






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






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






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






33. Just-in-time compilation






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






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






36. Windows Presentation Foundation






37. 32 bit integer data






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






39. Command Language Runtime






40. Framework Class Library






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






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






43. 32 bit single precision floating point data






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






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






46. 32 bit - unsigned integer data






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






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






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






50. System.Int64