C/C++ Programming Chapter 3
Quiz
•
Computers
•
University
•
Hard
Lê Duy Tân
Used 61+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
A procedure for solving a problem in terms of the actions to be executed and the order in which the actions should be executed is called a(n) ____
Algorithm
Flowchart
Sequence
Psudocode
2.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Specifying the execution order of statements by the computer is called ____
Algorithm
block
while
Program control
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
All programs can be written in terms of three types of control statements: [1], [2]
and [3].
Sequence, selection, iteration
Sequence, selection, if
Sequence, block, iteration
Sequence, selection, sentinel
4.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
The [___] selection statement is used to execute one action when a condition is true and another action when that condition is false.
if…else
while
do...while
function
5.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Several statements grouped together in braces ({ and }) are called a(n) ___.
Compound statement
block
Compound statement or block
Algorithm
6.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
The ___ iteration statement specifies that a statement or group of statements is to be executed repeatedly while some condition remains true.
if...else
else
while
if
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output of the given C program.
abd
cd
Compile time error
ab
Answer explanation
Only printf(“a”); is inside if block and if block ended. printf(“b”); is outside of if block. After that else part is started but the compiler doesn’t find if block for the else block, So it gives error: ‘else’ without a previous ‘if’. In C language, else part for if statement is optional. We can write a C program without else when we use if statement, But if block is compulsory for else block. We can’t write any else statement without if block.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
Computer Science: CPU performance
Quiz
•
University
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
15 questions
Microcontroller
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
11 questions
What is a computer
Quiz
•
KG - University
15 questions
Web Dev Midterm Quiz
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
