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. Command Language Runtime






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






3. (< or > or <= or >=)






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






5. 32 bit single precision floating point data






6. Extra information within a method






7. Text as Unicode characters






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






9. (&& or || or & or |)






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






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






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






13. System.SByte






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






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






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






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






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






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






20. 32 bit integer data






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






22. 64 bit integer data






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






24. Container for one or more Visual Studio Projects.






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






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






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






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






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






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






31. A Class that inherits characteristics from another Class.






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






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






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






35. 32 bit integer data






36. 64 bit - unsigned integer data






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






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






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






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






41. System.Int32






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






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






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






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






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






47. System.UInt16






48. Must have a data type






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






50. System.Double