Flashcards
Untitled
Cards in this deck (30)
- 1PseudocodeThe way code is written
- 2Pseudocodea language for describing algorithms that allow the algorithm designer to focus on the logic of the algorithm without being distracted by details of programming language syntax.
- 3SyntaxSyntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that understand what you type only if you type it in the exact form that the computer expects. The expected form is called the syntax.
- 4Variablea variable is a value that can change, depending on conditions or on information passed to the program. Typically, a program consists of instruction s that tell the computer what to do and data that the program uses when it is running.
- 5Data typea data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. ... This data type defines the operations that can be done on the data, the meaning of the data, and the way values of that type can be stored.
- 6StringA string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. ... Typically, programmers must enclose strings in quotation marks for the data to recognized as a string and not a number or variable name.
- 7IntegerAn integer is a whole number (not a fraction) that can be positive, negative, or zero. Therefore, the numbers 10, 0, -25, and 5,148 are all integers. Unlike floating point numbers, integers cannot have decimal places.
- 8FloatFloat is a term is used in various programming languages to define a variable with a fractional value. Numbers created using a float variable declaration will have digits on both sides of a decimal point.
- 9Booleanthe Boolean data type is a data type that has one of two possible values (usually denoted true and false), intended to represent the two truth values of logic and Boolean algebra.
- 10Inputan input device is a piece of computer hardware equipment used to provide data and control signals to an information processing system such as a computer or information appliance.
- 11PrintA statement is a command that the programmer gives to the computer. For example: print "Hi there!" This command has a verb ("print") and other details (what to print). In this case, the command print means "show on the screen," not "print on the printer."
- 12Casting(1) A variety of functions that transmit or convert data. See anycast, autocasting, blogcasting, Bluecasting, broadcast, multicast, narrowcast, podcast, and Webcast.
(2) In programming, the conversion of one data type into another; for example, from an integer to a string or vice versa. - 13If-Elif-ElseAn if else statement in programming is a conditional statement that runs a different set of statements depending on whether an expression is true or false. ... You would receive a pop-up "The expression is true!" alert message.
- 14Boolean OperatorsThere are five Boolean operators that can be used to manipulate TRUE/FALSE values. These operators have the following meanings, where x and y represent values of TRUE or FALSE. The OR operator is often called an inclusive OR, whereas XOR is an exclusive OR.
- 15And OperatorAll inputs must equal one for output to be one
- 16Or OperatorInputs must have a one in them for the output to equal one
- 17Notthe input will always be the opposite to the output
- 18Iterationa process wherein a set of instructions or structures are repeated in a sequence a specified number of times or until a condition is met. When the first set of instructions is executed again, it is called an iteration.
- 19Countcount refers to the number of objects or items. For example, you could view the statistics of a document and get the total word count.
- 20Conditionconditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.
- 21Rangerange refers to possible variable values or the interval that includes the upper and lower bounds of an array. In statistics, range refers to the interval between points of data.
- 22Whilea while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement.
- 23Fora for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly. ... For-loops are typically used when the number of iterations is known before entering the loop.
- 24Lista list or sequence is an abstract data type that represents a countable number of ordered values, where the same value may occur more than once.
- 25IndexCreating tables (indexes) that point to the location of folders, files and records. Depending on the purpose, indexing identifies the location of resources based on file names, key data fields in a database record, text within a file or unique attributes in a graphics or video file.
- 26Valuea value is the representation of some entity that can be manipulated by a program. The members of a type are the values of that type.
- 27Appendappend is the name of a procedure for concatenating (linked) lists or arrays in some high-level programming languages.
- 28DeleteDelete is computer terminology for remove or erase. You can delete text from a document of delete entire files or folders from your hard drive. When typing a document, you can remove characters behind the cursor by pressing the delete key.
- 29LenPython string length. | len() len() function is an inbuilt function in Python programming language that returns the length of the string.
- 30Insertinsert() Parameters. The insert() function takes two parameters: index - position where an element needs to be inserted. ...
Return Value from insert() The insert() method only inserts the element to the list. It doesn't return anything; returns None .
Example : Inserting Element to List. script.py.
Information
- Description
- Flashcards on Untitled, created by Ushanka cLub on 25/03/2019.
- Created by
- Ushanka cLub · Mar 2019
- Updated
- Mar 25, 2019
- Views
- 0
- Rating