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. The .NET run-time environment that enables code to be compiled and executed.






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






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






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






5. true or false






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






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






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






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






10. Restricts access to a Member to the current Class.






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






12. 64 bit integer data






13. Extra information within a method






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






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






16. System.UInt16






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






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






19. 128 bit fixed precision (financial)






20. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.






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






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






23. Indicates that the Method can be overridden.






24. System.UInt64






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






26. 64 bit double precision floating point data






27. Windows Presentation Foundation






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






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






30. Variables defined by a class






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






32. 64 bit - unsigned integer data






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






34. The process of hiding and restricting access to the implementation details of a data structure.






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






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






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






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






39. 32 bit integer data






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






41. Text as Unicode characters






42. 32 bit - unsigned integer data






43. System.Int64






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






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






46. Just-in-time compilation






47. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






48. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






49. System.SByte






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