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. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






2. System.UInt64






3. The process of compiling IL source into CPU-native code for execution.






4. Just-in-time compilation






5. A Class that cannot be instantiated.






6. Framework Class Library






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






8. A Class that can only have Static Members






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






10. Extra information within a method






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






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






13. Must have a data type






14. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






15. System.Int32






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






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






18. 32 bit - unsigned integer data






19. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.






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






21. 16 bit- unsigned word (U+0000 to U+ffff)






22. 64 bit - unsigned integer data






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






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






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






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






27. Allow access to types that exist in outside assemblies.






28. System.SByte






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






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






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






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






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






34. (== or !=)






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






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






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






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






39. Variables defined by a class






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






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






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






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






44. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






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






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






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






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






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






50. System.Decimal