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 integer data






3. Access is limited to the current Assembly






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






5. A Class that cannot be Inherited






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






7. System.Double






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






9. 128 bit fixed precision (financial)






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






11. A Class that can only have Static Members






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






13. Syntax of a C# Method






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






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






16. Something that has a different number of parameters to it's predecessor






17. 64 bit double precision floating point data






18. Text as Unicode characters






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






20. A Member that cannot be accessed/invoked through an Object Instance.






21. Allow access to types that exist in outside assemblies.






22. Variables defined by a class






23. Command Language Runtime






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






25. System.Int64






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






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






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






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






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






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






32. 32 bit integer data






33. (== or !=)






34. 64 bit integer data






35. A Class that cannot be instantiated.






36. System.UInt64






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






38. Extra information within a method






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






40. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






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






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






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






44. 64 bit - unsigned integer data






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






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






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






48. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






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






50. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.