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






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






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






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






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






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






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






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






9. System.Double






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






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






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






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






14. 128 bit fixed precision (financial)






15. Variables defined by a class






16. System.Int16






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






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






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






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






21. Indicates that the Method can be overridden.






22. Compilation of classes. In C# Usually ends in .dll or .exe






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






24. A Class that can only have Static Members






25. A Class that inherits characteristics from another Class.






26. true or false






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






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






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






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






31. System.Decimal






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






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






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






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






36. Command Language Runtime






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






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






39. Syntax of a C# Method






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






41. System.Int32






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






43. Allows the definition of a Class to span multiple files (within the same Project)






44. System.UInt32






45. Code which signifies a carriage return. Symbolises a new line in a text box.






46. System.Char






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






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






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






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