D. Correct the primitives.
1. PRINT "COMPUTER IS A MACHINE"
2. SUM 67
3. PRINT (GOOD MORNING)
4. PRINT (SUM 125]
5. PRODUCT 637
Answers
Answered by
0
Answer:
PRINT "COMPUTER IS A MACHINE"
PRINT 67 + SUM
PRINT "GOOD MORNING"
PRINT (SUM 125)
PRINT 637 * PRODUCT
Explanation:
In most programming languages, a primitive is the simplest type of data that a language can handle.
To write these primitives correctly, you need to understand the syntax of the language you are using. In the above examples,
- The first primitive is correct, as it uses the correct syntax to print the text "COMPUTER IS A MACHINE". However,
- The second primitive is incorrect because the word SUM is not defined.
- The third primitive is incorrect because "GOOD MORNING" should be in quotes to be interpreted as a string.
- The fourth primitive has an error in the placement of the parentheses and the fifth primitive has the incorrect operator.
More questions and answers
https://brainly.in/question/2913021?referrer=searchResults
https://brainly.in/question/5444828?referrer=searchResults
#SPJ1
Similar questions
English,
1 month ago
Math,
1 month ago
English,
1 month ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
Geography,
9 months ago