Recap Chapter 6, 7, 8

Recap Chapter 6, 7, 8

University

11 Qs

quiz-placeholder

Similar activities

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

Python List

Python List

4th Grade - University

15 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

Recap Chapter 6, 7, 8

Recap Chapter 6, 7, 8

Assessment

Quiz

Computers

University

Easy

Created by

nurul iman

Used 4+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Best type of repetition control structures to be used to make a menu item?

While loop

If ...else

Do...while loop

For loop

Answer explanation

Do...while loop is more convenient to the user, where the menu in a program will repeats itself, until the user chooses to quit the program. Therefore, do…while loop is a good choice for repeating a menu.

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Display array according to the boxes for the statement below.
char string2[] = "Wonderful";

Answer explanation

Media Image

A C-string is a string whose characters are stored in consecutive memory locations, terminated by a null character.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the syntax can read C-string with whitespaces?

cin.getline(arrayName, size);

getline(cin, variableName);

cin >> VariableName;

All of the above

4.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Media Image

Please write the output for the code based on the picture.

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Header file that used for character testing function.

Example: isupper, islower, isalpha

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of dataType that can be used in array?

int & string

char & string

int & double

All kind of dataType

7.

OPEN ENDED QUESTION

5 mins • 2 pts

Media Image

Please write the output for the program as shown in the picture.

Evaluate responses using AI:

OFF

Answer explanation

Media Image

The answer supposed to be:

This will display greetings between two friends

Hello! Nice to meet you!

Hi! My name is Laura!

Nice to meet you too!

Hope you are getting it right!

In any case, the program should give an output starting from the main function although the other functions are declared before the main function.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?