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. Most common kind of reference type. They define objects. They must have at least one method and one field.






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






4. Variables defined by a class






5. 32 bit integer data






6. Access is limited to the current Assembly






7. Code which implements GUI (graphical User Interface).






8. System.UInt32






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






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






11. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






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






13. Command Language Runtime






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






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






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






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






18. System.Byte






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






20. Must have a data type






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






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






23. true or false






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






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






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






27. System.Int64






28. 64 bit integer data






29. 32 bit - unsigned integer data






30. (< or > or <= or >=)






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






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






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






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






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






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






37. 64 bit - unsigned integer data






38. System.Single






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






40. The .NET run-time environment that enables code to be compiled and executed.






41. Indicates that the Method can be overridden.






42. System.SByte






43. A Class that can only have Static Members






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






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






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






47. Symbols which transform and combine expressions






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






49. Just-in-time compilation






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