
quize

Quiz
•
Education
•
University
•
Easy
salma mohamed
Used 1+ times
FREE Resource
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;
}
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
IT-B-DS Lab Quiz-3

Quiz
•
University
13 questions
Quiz Briefing of Outcome-based Education (OBE) OCT 2020

Quiz
•
University
10 questions
Sumit

Quiz
•
University
10 questions
PHP BASIC

Quiz
•
University
10 questions
Module 1- Python Basics_2nd_Semester

Quiz
•
University
15 questions
Used to

Quiz
•
University
15 questions
Simple present-Information Questions

Quiz
•
4th Grade - University
15 questions
Айнымалылармен жұмыс

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University