c programming module 2 test

c programming module 2 test

University

10 Qs

quiz-placeholder

Similar activities

PreTest PBO2

PreTest PBO2

University

10 Qs

C Programming First Quiz - Sec H

C Programming First Quiz - Sec H

University

10 Qs

Java Quiz

Java Quiz

University

10 Qs

C PROGRAMMING

C PROGRAMMING

University

15 Qs

Web Dev

Web Dev

University

15 Qs

Golang Basics 2

Golang Basics 2

University

15 Qs

Java

Java

University

15 Qs

Array

Array

University

7 Qs

c programming module 2 test

c programming module 2 test

Assessment

Quiz

Other

University

Hard

Created by

Hridinya Pavithran

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correct?

for(i=0,i<n,i++)

for(i=0,i<n,i++);

for(i=0;i<n;i++);

for(i=0;i<n;i++)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for loop is an example of

conditional statement

looping statement

both of these

breking statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is meaning of following declaration ?

int arr[20];

Array of size 20 that can have integer address

Array of Size 20

Integer array of Size 20

none of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Below is an example of -

int RollNum[30][4];

1 D array

2 D array

3 D array

4 D array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Array in C language.?

A group of elements of same data type.

An array contains more than one element

Array elements are stored in memory in continuous or contiguous locations.

all the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array Index starts with.?

0

1

-1

2

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C Program.?

int main()

{

int a[];

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

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

}

1

2

1,2,3,4

compiler error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?