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. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






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






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






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






6. 64 bit integer data






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






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






9. Variables defined by a class






10. 8 bit - signed byte (-128 - 127)






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






12. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






13. Code which signifies a carriage return. Symbolises a new line in a text box.






14. System.Int64






15. (< or > or <= or >=)






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






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






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






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






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






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






22. Text as Unicode characters






23. true or false






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






25. true or false






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






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






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






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






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






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






32. System.Double






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






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






35. Syntax of a C# Method






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






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






38. Microsoft's generic software framework for application development.






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






40. System.Byte






41. System.Single






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






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






44. System.Int16






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






46. Command Language Runtime






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






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






49. (== or !=)






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