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. 16 bit - signed integer data (-32768 to 32767)






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






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






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






5. System.Char






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






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






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






9. Windows Presentation Foundation






10. Integrated Development Environment






11. Syntax of a C# Method






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






13. System.Byte






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






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






16. 8 bit - unsigned byte (0 - 255)






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






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






19. Contains the class definitions that allow access to the functionality provided by .NET.






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






21. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.






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






23. Represents the encapsulation of data and behaviors into a single unit.






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






25. Text as Unicode characters






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






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






28. System.UInt64






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






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






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






32. System.SByte






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






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






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






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






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






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






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






40. 64 bit double precision floating point data






41. A symbol that specifies an operation to be performed on one or more variables.






42. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






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






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






46. System.Decimal






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






48. A Class that inherits characteristics from another Class.






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






50. (&& or || or & or |)