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. Sits behind GUI (Graphical User Interface) and provides event listeners






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






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






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






5. (< or > or <= or >=)






6. System.UInt64






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






8. System.Decimal






9. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






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






11. A Class that inherits characteristics from another Class.






12. System.Double






13. Framework Class Library






14. A Class from which other classes can inherit characteristics.






15. System.Int16






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. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






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






19. System.Single






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






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






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






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






24. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.






25. Must have a data type






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






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






28. A Class that can only have Static Members






29. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






31. Indicates that the Method can be overridden.






32. 32 bit single precision floating point data






33. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






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






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






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






38. 32 bit integer data






39. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






40. 64 bit double precision floating point data






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






42. System.Int64






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






44. 32 bit - unsigned integer data






45. 64 bit integer data






46. true or false






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






48. The "Type" name of data that is stored on the Heap






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






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