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. Microsoft's generic software framework for application development.






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






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






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






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






6. Windows Presentation Foundation






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






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






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






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






11. System.Double






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. Integrated Development Environment






14. System.UInt32






15. System.Int32






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






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






18. true or false






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






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






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






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






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






24. Must have a data type






25. System.Int64






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






27. Syntax of a C# Method






28. 64 bit - unsigned integer data






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






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






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






32. 32 bit integer data






33. true or false






34. 32 bit integer data






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






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






37. Command Language Runtime






38. Extra information within a method






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






40. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






41. (== or !=)






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






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






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






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






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






47. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






48. 32 bit single precision floating point data






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






50. System.Int16