
14/12/2024 - Array
Authored by Dr.S.Vidhya KGCAS
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base address of a one-dimensional array in C?
Address of the first element
Address of the last element
Address of the middle element
Address of the array size
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element of the array int arr[5] = {10, 20, 30, 40, 50}; using a pointer ptr initialized as int *ptr = arr;?
ptr[3]
*(arr + 3)
*(ptr + 2)
arr[3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
#include <stdio.h>
int main() {
int arr[3] = {100, 200, 300};
int ptr = arr; printf("%d", (ptr + 1));
return 0; }
100
200
300
error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare an array of integer pointers in C?
int *arr[5];
int arr*[5];
int (*arr)[5];
int arr[5]*;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If int *arr[3] is an array of integer pointers and each pointer points to an integer, how do you access the integer pointed to by the second pointer?
arr[1]
*arr[1]
&arr[1]
**arr[1]
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
Dsquad
Quiz
•
Professional Development
10 questions
Quiz testing darwinbox
Quiz
•
Professional Development
10 questions
Soal Informatika Kelas 8
Quiz
•
Professional Development
10 questions
Functional Skills ICT
Quiz
•
Professional Development
8 questions
Quiz – Module 1: Network Basics
Quiz
•
Professional Development
5 questions
Programming Quiz
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade