PTASAPTASA
Slide 1 Slide 1
Slide 2 Slide 2
Slide 3 Slide 3
Slide 4 Slide 4
<
>

DAE CIT-113 CH-08 MCQs

DAE | CIT-113

INTRODUCTION TO COMPTER PROGRAMMING 

CHAPTER : 08

DIPLOMA OF ASSOCIATE ENGINEERING

EXAM PRAPARATION

COMMON WITH:
COMPUTER INFORMATION TECHNOLOGY

MULTIPLE CHOICE QUESTION

Chapter:08 (Arrays and Strings)

Question 1:

What is an Array in C language?

Question 2:

What are the Types of Arrays?

Question 3:

An array Index starts with.?

Question 4:

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]); }?

Question 5:

What is an array Base Address in C language?

Question 6:

Which of these best describes an array?

Question 7:

How do you initialize an array in C?

Question 8:

What is the output of the following piece of code?
public class array
{
public static void main(String args[])
{
int []arr = {1,2,3,4,5};
System.out.println(arr[2]);
System.out.println(arr[4]); }
}

Question 9:

When does the ArrayIndexOutOfBoundsException occur?

Question 10:

What are the advantages of arrays?

Question 11:

What are the disadvantages of arrays?

Question 12:

Assuming int is of 4bytes, what is the size of int arr[15];?

Question 13:

In general, the index of the first element in an array is __________

Question 14:

Elements in an array are accessed _____________

Question 15:

What is a String in C Language.?

Question 16:

Choose a correct statement about C String.
char ary[]="Hello..!";

Question 17:

What is the output of C Program with Strings.?
int main()
{
char ary[]="Discovery Channel";
printf("%s",ary);
return 0;
}

Question 18:

What is the maximum length of a C String.?

Question 19:

Strcat() function adds null character.

Question 20:

Any function working with String knowns the String has ended when it encounters


NOTE
If you find any mistake in them, do tell in the comment, so that it can be corrected.

If you face any issues feel free to contact me on WhatsApp
03129671316, 03085507292

If you want more improvement
Share feedback in the comment

INSTRUCTOR
MUHAMMAD BIN JAMEEL
BSC ENGG. CIVIL
 

1 Comments

Previous Post Next Post