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






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






3. Represents the encapsulation of data and behaviors into a single unit.






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






5. System.Decimal






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






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






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






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






10. 32 bit integer data






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






12. Syntax of a C# Method






13. (== or !=)






14. System.UInt16






15. Symbols which transform and combine expressions






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






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






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






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






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






21. A Class that can only have Static Members






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






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






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






25. 32 bit - unsigned integer data






26. System.Byte






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






28. System.Single






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






30. Must have a data type






31. true or false






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






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






34. Variables defined by a class






35. System.Int16






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






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






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






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






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. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






42. Just-in-time compilation






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






44. 64 bit double precision floating point data






45. A Class that cannot be Inherited






46. Integrated Development Environment






47. 128 bit fixed precision (financial)






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






49. Keyword which exposes members to other classes OR Identifier which makes program elements public






50. A Class that inherits characteristics from another Class.