adplus-dvertising
frame-decoration

Question

What is the correct syntax of for statement?

a.

for(initialization;condition;update)

b.

for(initialization,condition,update)

c.

for(condition;initialization;update)

d.

for(initialization;condition;)

Posted under IT Fundamentals

Answer: (a).for(initialization;condition;update)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the correct syntax of for statement?

Similar Questions

Discover Related MCQs

Q. Which of the following is a loop statement?

Q. The following is the syntax for:

____(condition)
action

Q. A program should be ________

Q. A ________ is a directed graph that describes the flow of execution control of the program.

Q. Top-down approach is followed in structural programming.

Q. Programming based on stepwise refinement process.

Q. A statement used to close the IF block.

Q. A symbol used for grouping.

Q. Another notation for exponentiation.

Q. ____________ begins with lower case letters.

Q. _____________ are identified by their addresses, we give them names (field names / variable names) using words.

Q. The statement that tells the computer to get a value from an input device and store it in a memory location.

Q. ______________ is used to show hierarchy in a pseudo code.

Q. Which of the following is not a keyword?

Q. Capitalize initial keyword – This is a rule while writing a pseudo code.

Q. Keep the statement language ______________ while writing a pseudo code.

Q. An _______ is a connector showing the relationship between the representative shapes.

Q. The action performed by a ___________ structure must eventually cause the loop to terminate.

Q. Which of the following is not a flowchart structure?

Q. The operation represented by parallelograms.