
3 section

Quiz
•
Computers
•
10th Grade
•
Hard
Ahmed Tarbosh
Used 1+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to access the last element of an array in C++?
arr[length-1]
arr[length]
arr[length+1]
arr[-1]
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid way to declare a variable in C++?
int num;
float num = 3.14;
char letter = 'a';
None of the above
Similar Resources on Wayground
10 questions
Exam 2 MC

Quiz
•
10th - 12th Grade
10 questions
Delphi Arguments/Returns

Quiz
•
8th - 10th Grade
10 questions
Data Conversion & User Input

Quiz
•
10th Grade
11 questions
Learning Variables

Quiz
•
9th - 12th Grade
10 questions
Podstawy Pythona

Quiz
•
9th - 12th Grade
10 questions
Bài 26-Hàm trong Python

Quiz
•
10th Grade
8 questions
ÔN TẬP TRƯỚC FOR

Quiz
•
10th Grade
6 questions
Delphi Revision Part 1

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade