
quize
Authored by salma mohamed
Education
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way declaring an Array "Arr" which is an integer array having 20 element.?
Array [] =Arr[20];
int Arr[20];
int[20] Arr;
int Arr= new [20];
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way declaring an Array "MyArr" which is an integer array having 10 element.?
Array [] =MyArr[10];
int MyArr[10];
int[10] MyArr;
int MyArr= new [20];
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way declaring an Array "MyArr" which is an double array having 10 element.?
Array [] =MyArr[10];
double[10] MyArr;
double MyArr[10];
int MyArr= new [10];
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statement Declare an array called ABC of 5 elements of type int and initialize all the elements to 100?
int ABC[5]= {100,100,100,100,100};
int ABC[ ]= {5,100};
int ABC[5]= {5,100};
int[5] ABC= {100,100,100,100,100};
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statement Declare an array called Y of 5 elements of type String and initialize the elements to
Ahmed, Khalifa, Mohammad, Sultan, Abdullah.
String Y[5]={"Ahmed","Khalifa","Mohammad", Sultan", "Abdullah"};
String Y[ ]={"Ahmed","Khalifa","Mohammad", Sultan", "Abdullah"};
int Y[5]={"Ahmed","Khalifa","Mohammad", Sultan", "Abdullah"};
String Y[5]={Ahmed,Khalifa,Mohammad, Sultan, Abdullah};
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements correctly declare an Array Arr that have 5 elements and intialize it to zero using for loop?
int Arr[20];
For(i=0; i<20 ; ++i)
{
myArr[i]=0;
}
int Arr[5];
For(i=0; i<5 ; ++i)
{
myArr[i]=0;
}
int Arr[5];
For(i=0, i<5, ++i)
{
myArr[i]=0;
}
int Arr[5];
For(i=0; i<20 ; ++i)
{
myArr[i]=0;
}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements correctly declare an Array Arr that have 15 elements and intialize it such that each element is multiple of 2 using for loop?
int Arr[15];
For(i=0; i<15 ; ++i)
{
myArr[i]=i*2;
}
int Arr[5];
For(i=0; i<5 ; ++i)
{
myArr[i]=0*2;
}
int Arr[5];
For(i=0; i<5 ; ++i)
{
myArr[i]=0;
}
int Arr[5];
For(i=0,i<5 , ++i)
{
myArr[i]=0;
}
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
15 questions
¡JUGUEMOS!
Quiz
•
1st Grade - University
10 questions
Recepção alunos
Quiz
•
University
12 questions
LESSON 4: MY ROOM
Quiz
•
University
12 questions
Il passato prossimo con essere
Quiz
•
3rd Grade - Professio...
13 questions
Objetivos y habilidades RELACIONAR OBJETIVOS CON HABILIDADES
Quiz
•
University
12 questions
FRONT OFFICE OPERATIONS II
Quiz
•
University
15 questions
inecuaciones
Quiz
•
7th Grade - University
15 questions
Pengantar Sosiologi
Quiz
•
University
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 Education
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University