Assignment No. 12 - Array and Function in C
Quiz
•
Computers
•
10th Grade
•
Hard
Nina Perena
Used 4+ times
FREE Resource
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
■An array is a group of memory locations that have ______________________________.
the same name and different type
the same name
the same name and the same type.
the different name and type
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Two types of Array are:
1 Dimensional Array and 2 Dimensional Array
2 Dimensional Array and 3 Dimensional Array
Linear Array and Dynamic Array
Sequence Array and Non-Sequence Array
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Declaration statement for an array named arr with size 4 is
int arr[0];
int arr[5];
int arr(4);
int arr[4];
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Declaration and initialize statement for an array named number with 1.1, 2.2 and 3.3 is written as
float number[2] = {1.1, 2.2, 3.3};
int number[3] = {1.1, 2.2, 3.3};
float number[3] = {1.1, 2.2, 3.3};
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main()
{
int a[] = {1,2,3,4};
int b[4] = {5,6,7,8};
printf("%d,%d", a[0], b[0]);
}
1
2
4
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C Program.?
int main() {
int a[] = {1,2,3,4};
int b[4] = {5,6,7,8};
printf("%d,%d", a[0], b[0]);
}
1,5
2,6
0,0
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of C program.?
int main()
{
float marks[3] = {90.5, 92.5, 96.5};
int a=0;
while(a<3)
{
printf("%.2f,", marks[a]); a++;
}
}
90.5 92.5 96.5
90.50 92.50 96.50
0.00 0.00 0.00
Compiler error
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
36 questions
Chapter 3 File Management
Quiz
•
9th - 12th Grade
42 questions
Unit 2 Global Information Cambridge Technicals IT L3
Quiz
•
10th - 12th Grade
40 questions
WJEC 1.1.1 Hardware - Architecture
Quiz
•
9th - 10th Grade
42 questions
SENSORS (IGCSE)
Quiz
•
8th - 10th Grade
37 questions
Excel Gmetrix Quiz
Quiz
•
10th - 12th Grade
44 questions
Movies
Quiz
•
2nd Grade - Professio...
36 questions
Chapter Nine Elements of art and Design Hierarchy
Quiz
•
9th - 12th Grade
40 questions
year 3 QUIZ 3 2nd term
Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
