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. 32 bit integer data






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






3. A Class that can only have Static Members






4. A Class that inherits characteristics from another Class.






5. Must have a data type






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






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






8. Windows Presentation Foundation






9. System.SByte






10. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






12. 64 bit - unsigned integer data






13. 128 bit fixed precision (financial)






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






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






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






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






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






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






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






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






22. System.UInt32






23. System.Int32






24. The process of compiling IL source into CPU-native code for execution.






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






26. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






28. Access is limited to the current Assembly






29. (&& or || or & or |)






30. System.Decimal






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






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






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






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






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






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






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






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






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






41. System.UInt16






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






43. System.Int64






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






45. 64 bit double precision floating point data






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






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






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






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






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