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. Text as Unicode characters






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






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






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






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






6. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






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






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






10. Container for one or more Visual Studio Projects.






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






12. Allows the definition of a Class to span multiple files (within the same Project)






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






14. 32 bit integer data






15. Windows Presentation Foundation






16. The lowest level or fundamental data types needed for representing data.






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






18. Symbols which transform and combine expressions






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






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. Represents the encapsulation of data and behaviors into a single unit.






22. System.Int64






23. Integrated Development Environment






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






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






26. true or false






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






28. System.UInt16






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






30. Framework Class Library






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






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






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






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






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






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






37. System.UInt32






38. 128 bit fixed precision (financial)






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






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






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






42. An instance of a class that exists at run-time and is typically referenced via a variable name.






43. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






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






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






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






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






49. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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