Logo/

Basic Programming Lecture 3 Flashcards

Log in

Made with ScholarlyMake flashcards like these from your own notes

Basic Programming Lecture 3 Flashcards

Questions and answers

9 cards
  1. Question:What is structured programming?

    Answer:It is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection, repetition, and sequence.

  2. Question:What are the three types of structured control flow constructs?

    Answer:Selection, repetition, and sequence.

  3. Question:What is a compound statement?

    Answer:Multiple statements grouped into a block by braces {...}

  4. Question:What is a simple conditional expression?

    Answer:An expression using relational operators.

  5. Question:What is a combination of simple conditional expressions using logical operators?

    Answer:A complex expression utilizing logical operators.

  6. Question:What are the relational operators used in C?

    Answer:<, >, <=, >=, ==, !=

  7. Question:How can boolean data types be used in C?

    Answer:_Bool and bool

  8. Question:What is the syntax of an if statement?

    Answer:if(expression)Statement;

  9. Question:What does the basic form of an if statement look like?

    Answer:ConditionalExpression Statement true false