COS1511 Introduction To Programming Exam (2023)- Complete Elaborations (100% Correct)
COS1511 Introduction To Programming Exam (2023)- Complete Elaborations (100% Correct) COS1511 Introduction To Programming Exam (2023)- Complete Elaborations (100% Correct) IDE - ANSWER - Integrated Development Environment cout - ANSWER - Stands for console output; the standard output stream object in C++; used with the insertion operator to display information on the computer screen #include iostream - ANSWER - The include directive needed to allow use of the various I/O operators such as cout and cin. using namespace std; - ANSWER - Declares that the program will be accessing entities whose names are part of the namespace called std int main() - ANSWER - The header for the main function of the program, int tells compiler function will be returning an integer (return 0;) Statement Terminator - ANSWER - The semicolon (;) is used to indicate the end of a statement. Comments - ANSWER - Using descriptive text to explain portions of code. Comments do not change the way a robot behaves, but are important for the programmer to remember what the code does. endl; - ANSWER - A stream manipulator used with cout that can be used to advance the cursor to the next line on the computer screen Syntax Rules - ANSWER - Programming syntax rules must be followed for the compiler to understand you Good Programming Style - ANSWER - Leaving open lines, putting statements on seperate lines, using comments in code, indenting code etc. BODMAS - ANSWER - Brackets, Order, Division, Multiplication, Addition, Subtraction Data Type: Integer - ANSWER - Integer numerical ; No decimals/fractions (Even with division); Positive and Negative Numbers; Variable - ANSWER - We declare a var with a name so we can refer to the value stored in the memory position in a program; Use meaningful names; Always declare or initialise before use.
Geschreven voor
- Instelling
- COS1511
- Vak
- COS1511
Documentinformatie
- Geüpload op
- 8 juli 2023
- Aantal pagina's
- 5
- Geschreven in
- 2022/2023
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
- cos1511 introduction to
-
cos1511 introduction to programming exam 2023
-
cos1511 introduction to programming exam
-
cos1511 introduction to programming
-
cos1511 introduction to programming exam questions
Ook beschikbaar in voordeelbundel