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. Windows Presentation Foundation






2. 32 bit integer data






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






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






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






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






7. Framework Class Library






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






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






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






11. 128 bit fixed precision (financial)






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






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






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






15. Just-in-time compilation






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






17. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






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






20. A Class that cannot be Inherited






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






22. A Class that cannot be instantiated.






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






24. System.Int32






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






26. Something that has a different number of parameters to it's predecessor






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






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






29. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






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






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






33. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






34. 64 bit integer data






35. Must have a data type






36. 32 bit integer data






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






38. 32 bit single precision floating point data






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






40. System.Byte






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






42. 64 bit - unsigned integer data






43. Restricts access to a Member to the current Class and any Derived Class.






44. System.Char






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






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






47. Extra information within a method






48. Symbols which transform and combine expressions






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






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