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






2. 32 bit single precision floating point data






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






4. Syntax of a C# Method






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






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






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






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






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






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






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






12. A Class that cannot be instantiated.






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






14. 64 bit double precision floating point data






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






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






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






18. true or false






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






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






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






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






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






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






25. Names reserved by the compiler that coders are not allowed to use as identifiers.






26. Symbols which transform and combine expressions






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






28. (= or += or -= or = or /=)






29. true or false






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






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






32. System.Double






33. System.Decimal






34. (< or > or <= or >=)






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






36. A Class that can only have Static Members






37. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






38. 64 bit integer data






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






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






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






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






43. Just-in-time compilation






44. System.UInt32






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






46. System.Char






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






48. System.Int64






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






50. System.Byte