
3 section
Authored by Ahmed Tarbosh
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
BP TIK 1
Quiz
•
10th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
10 questions
Adobe Illustrator Tools
Quiz
•
10th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
10 questions
J808 LO1.1 Advantages of following a project life cycle
Quiz
•
10th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
12 questions
10 Клас Python tests
Quiz
•
10th Grade
10 questions
Xth IT Viva
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade