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. Container for one or more Visual Studio Projects.






3. Mathematical (+ or - or / or %)






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






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






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






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






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. count = count+1 or count++ or count__. Both count variables are Unary Operators






10. 128 bit fixed precision (financial)






11. 64 bit integer data






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






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






14. Windows Presentation Foundation






15. A Class that cannot be instantiated.






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






17. Variables defined by a class






18. System.Double






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






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






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






22. true or false






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






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






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






26. System.Char






27. 32 bit single precision floating point data






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






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






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






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






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






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






34. 32 bit - unsigned integer data






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






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






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






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






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






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






41. System.UInt32






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






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






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






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






46. 64 bit integer data






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






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






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






50. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio