3 section

3 section

10th Grade

9 Qs

quiz-placeholder

Similar activities

Thinglink

Thinglink

9th - 12th Grade

10 Qs

PEMOGRAMAN DASAR X KJ 1

PEMOGRAMAN DASAR X KJ 1

10th Grade

10 Qs

storage devices and media

storage devices and media

10th Grade

10 Qs

Working with tables

Working with tables

5th - 12th Grade

10 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Pemrograman Dasar

Pemrograman Dasar

10th Grade

10 Qs

Q2 M4 PRE-TEST

Q2 M4 PRE-TEST

10th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

3 section

3 section

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Ahmed Tarbosh

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is used to store multiple values of the same data type in a single variable?

int

float

char

array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to read a string with spaces in C++?

cin >> str;

getline(cin, str);

scanf("%s", str);

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find the length of a string in C++?

str.length()

strlen(str)

size(str)

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to print the value of an array element at a particular index?

cout << array[index];

print(array[index]);

print array[index];

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid way to initialize an array in C++?

int arr[] = {1, 2, 3};

int arr[3] = {1, 2, 3};

int arr[3] = {1};

int arr[3] = {};

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to concatenate two strings in C++?

+

&

%

|

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

int arr[] = {1, 2, 3};

cout << arr[1];

1

2

3

Compilation error

Access all questions and much more by creating a free account

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

Already have an account?