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. 32 bit integer data






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






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






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






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






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






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






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






9. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






10. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






11. A Class that cannot be instantiated.






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






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






14. true or false






15. System.Byte






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






17. System.Double






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






19. A Class that cannot be Inherited






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






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






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






23. Command Language Runtime






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






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






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






27. Introduces a new class. Marked by curly brackets { }






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






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






30. Container for one or more Visual Studio Projects.






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






32. 64 bit double precision floating point data






33. System.UInt16






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






35. 128 bit fixed precision (financial)






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






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






38. Must have a data type






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






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






41. Indicates that the Method can be overridden.






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






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






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






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






46. Just-in-time compilation






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






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






49. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






50. Syntax of a C# Method






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests