COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
A calculation performed in a programming language
|
|
A box in a flow chart
|
|
A keyword in a programming language
|
|
A printout of the program
|
Detailed explanation-1: -In computer programming, a statement is a syntactic unit of an imperative programming language that expresses some action to be carried out. A program written in such a language is formed by a sequence of one or more statements. A statement may have internal components (e.g. expressions).
Detailed explanation-2: -In a computer programming language, a statement is a line of code commanding a task. Every program consists of a sequence of statements.
Detailed explanation-3: -A statement keyword is part of the syntax of a statement. A sequence of characters is not reserved in all contexts. A statement keyword is interpreted as an entity name if the keyword is used in such a context. Parent topic: Statements.
Detailed explanation-4: -Statements include return 1+1; and foo(bar); , but generally not expressions like 1+1 or foo(bar) . Keywords often form part of statements (e.g. return introduces a return statement), but they never make a full statement on their own-even return; still needs a statement terminator.
Detailed explanation-5: -A statement is a command that the programmer gives to the computer. For example: print “Hello, world!” This command has a verb (“print”) and other details (what to print).