Search Header Logo

Arrays & Strings

Authored by Abdul Rahman

English

University

Used 2+ times

Arrays & Strings
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array is collection of _____ dataItems

Similar

Differenet

Limited

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array index always starts with _____.

0

1

-1

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a[]={1,2,3,4};

printf("%d",a[1]+a[2]);

2

3

4

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

char a[]={'1','2','3','4'};

printf("%d",a[1]+a[2]);

3

23

5

101

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

character array is callled as

big char

string

boolean

void

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a[5];

for(int i=0;i<3;i++){

scanf("%d",&a[i]);

}

printf("%d",a[3]);

it will print the element of 3rd index

it will print the element of 2nd index

it will print some garbage value

it will produce error

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

choose the wrong declaration

int a[5];

int a=[5];

int a={1,2,3};

int a=[1,2,3];

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?