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






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






3. Just-in-time compilation






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






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






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






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






8. (&& or || or & or |)






9. Framework Class Library






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






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






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






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






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






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






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






17. A Class that inherits characteristics from another Class.






18. A Class that cannot be Inherited






19. Variables defined by a class






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






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






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






23. 32 bit integer data






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






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






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






27. 32 bit integer data






28. true or false






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






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






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






32. System.Byte






33. Contains the class definitions that allow access to the functionality provided by .NET.






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






35. (== or !=)






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






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






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






39. Syntax of a C# Method






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






41. System.Char






42. System.UInt64






43. Compilation of classes. In C# Usually ends in .dll or .exe






44. A Class that can only have Static Members






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






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






47. Used to display text that end user does not need to edit.






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






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






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