C program

C program

University

10 Qs

quiz-placeholder

Similar activities

java

java

University - Professional Development

10 Qs

PR EidP Quiz Seminar 3

PR EidP Quiz Seminar 3

University

6 Qs

c-programming-2

c-programming-2

University

13 Qs

Codigo with C

Codigo with C

University

10 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Let's C It

Let's C It

11th Grade - University

6 Qs

ROUND 2 MIND MAZE

ROUND 2 MIND MAZE

University

5 Qs

C program

C program

Assessment

Quiz

Education

University

Medium

Created by

Dr. Mary

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

___________is a collection of data items, all of same type, accessed using a common name

arrays

pointers

statements

data types

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Analyze the program and predict the output

#include<stdio.h>

int main()

{

int mynumbers[ ]={25,60,70,12}

print ("%d", mynumbers[1]);

return 0;

}

60

70

25

12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Examine the program and predict the output

#include<stdio.h>

void main()

{

int a[5]={10,20,30,40,50};

int i;

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

{

printf("%d\n",a[i]);

}

return 0();

}

10,20,30,40,50

10.40,70,90

20,30,40,50

50,40,30,20,10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following code and determine the output

#include<stdio.h>

int main()

{

int nums[3]={5,15,25};

printf("%d", nums[2]);

return 0;

}

5

15

25

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Inspect the code and predict the output

#include<stdio.h>

int main()

{

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

for(int j=0;j<4;j++)

{

printf("%d ", values[j]);

}

return 0;

}

1 2 3 4

4 3 2 1

2 3 4

1 2 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Review the following code and determine the output

#include<stdio.h>

int main()

{

int arr[4]={100,200,300,400};

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

return 0;

}

100

200

300

400

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Analyze the code snippet and predict the output

#include<stdio.h>

int main()

{

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

for(int k=0;k<5;k++)

{

printf("%d ", numbers[k]);

}

return 0;

}

1 2 3 4 5

5 4 3 2 1

2 3 4 5

1 2 3 4

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?