GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Beginner C#

darkhumor21 Englisch 34 Karten

Karten in diesem Stapel (34)

  1. 1What code stops the console closing automatically once the program has been run.Console.ReadKey();
  2. 2Name the 3 main groups of built-in typesIntegral Types,
    Floating-point Types,
    Reference Types
  3. 3This is the simplest possible type. It can only hold one of two values: true or falsebool
  4. 4All integers of varying capacities belong to this typeIntegral
  5. 5All real numbers of varying range and precision belong to this typeFloating Point Types
  6. 6The variables for these don't actually contain the value represented by these directly. They contain a reference to the memory address where the value is actually storedReference Types
  7. 7What is an operator?Operators are the most basic way that you can create interactions between objects/values
  8. 8Name 3 important C# operatorsunary,
    binary,
    ternary
  9. 9What is a Unary operator?Unary operators take only one operand
  10. 10What is a Binary Operator?Binary operators take two operands
  11. 11What is an Iteration?An Iteration is the act of repeating something (that ‘something’ being code statements in the programming context)
  12. 12What is a Conditional action?A conditional action is said to be one that is only performed if a certain condition is true
  13. 13What is main use of a For Loop?For loops allow us to specify the number of times to repeat a block of code
  14. 14What is main use of a ForEach Loop?Foreach loops (sometimes called “foreach, in” loops) are used to loop through items in an array or a collection
  15. 15What is main use of a While Loop?The while loop is used to repeat a block of code, while a certain condition remains true
  16. 16What is a Decision Construct?Decision constructs are used to control the flow of our programs. They allow us to run certain blocks of code once, only if a certain condition is true
  17. 17Name the 2 key types of decision statementsif,
    switch
  18. 18What is the If statement used for?If statements allow you to choose which code gets executed
  19. 19Name the 3 If statementsIf,
    else,
    else if
  20. 20What is the Switch statement used for?A switch statement allows use to execute code based on a predefined set choices
  21. 21What are the most important keywords in Switch statements?Continue,
    Break
  22. 22What is the purpose of the Continue keyword?The ‘continue’ keyword is used to instantly move to the next iteration of a loop body
  23. 23What is the purpose of the Break keyword?The ‘break’ keyword, when used in the context of loops, can be read as “break out of this loop immediately, and do not loop any more.”
  24. 24What is a Collection?A Collection is a single container able to contain an arbitrary number of values
  25. 25Name 3 of the 5 types of CollectionArray,
    List,
    Queue,
    Stack
  26. 26Which is the most basic Collection?Array
  27. 27What is the difference between Lists and Arrays?Lists are similar to arrays, except that they allow for dynamic sizing
  28. 28What is a Queue?The Queue collection is much the same as a List or Array. When you add items (called "Enqueueing"), they are added at the end, and when you remove them (called "Dequeueing"), you remove them from the front. This is a principle known as FIFO (or First In, First Out)
  29. 29What is a Stack?Stacks are like queues, but opposite. Stacks are LIFO (or Last In, First Out). To visualize this, imagine a tray for papers on your desk. When you add a paper to the tray, you add it on the top of the Stack. When you reach in for a paper, you pull the top one off, which was the last one added to the tray
  30. 30What is a Function?A Function is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed
  31. 31What is a Method?A method is simply a function attached to a class. In some languages, the distinction is important, because functions can be defined arbitrarily. In C# however, (named) functions must belong to a class, so the distinction is unimportant
  32. 32What is a Type?A classification identifying one of various types of data, such as real, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored
  33. 33What is an Argument?An Argument is a special kind of variable, used in a subroutine [function] to refer to one of the pieces of data provided as input to the subroutine
  34. 34What is Recursion?Recursion is what it's called when a function calls itself. In other words, the function is defined in terms of itself

Informationen

Beschreibung
Flashcards on Beginner, created by darkhumor21 on 07/02/2016.
Erstellt von
darkhumor21
Aufrufe
41
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck