
Data Structure Lab 1
Quiz
•
Information Technology (IT)
•
University
•
Medium
Yasmin Kandil
Used 23+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in a C++ array?
1
0
-1
Depends on compiler
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an array int arr[5]; is declared, what is the valid index range?
1 ->5
0 ->5
0 ->4
-1 ->4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
int num = 5, *ptr = #
ptr = ptr + 10;
cout << num;
5
10
15
error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares a pointer to an integer?
int p;
int *p;
int &p;
pointer int p;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code:
int arr[3] = {1, 2, 3};
int *p = arr;
cout << *(p+2);
1
2
3
garbage value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After executing the code below, what are the values of x and y?
int x = 5, y = 10;
int p = &x, q = &y;
p = q;
x = 5, y = 10
x = 10, y = 10
x = 5, y = 5
x = 0, y = 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
char ch = 'A'; // ASCII = 65
ch = ch + 2;
cout << ch;
A
B
C
65
67
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
10 questions
高二資訊課補考題目
Quiz
•
11th Grade - University
10 questions
Repaso Segundo Parcial - AdC 2024 - K1031
Quiz
•
University
12 questions
Review loops
Quiz
•
8th Grade - University
10 questions
Fundamentos de Programación en Python
Quiz
•
6th Grade - University
11 questions
html basics
Quiz
•
8th Grade - University
10 questions
Thuật toán Backtracking
Quiz
•
University
10 questions
Latsol
Quiz
•
10th Grade - University
13 questions
HTML QUIZ
Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
7 questions
Review for You: Using Commas
Interactive video
•
4th Grade - University
5 questions
Using Context Clues
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
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
Safari Scholar: Searching for Subject-Verb Agreement
Interactive video
•
4th Grade - University
