C program

C program

University

10 Qs

quiz-placeholder

Similar activities

Computer Knowledge

Computer Knowledge

1st Grade - Professional Development

10 Qs

KUIS PEMCIT PRAK4

KUIS PEMCIT PRAK4

University

10 Qs

LOS ROBLES 2023

LOS ROBLES 2023

University

10 Qs

Correlación biomarcadores trastornos hidroelectroliticos

Correlación biomarcadores trastornos hidroelectroliticos

University

10 Qs

Government Budget

Government Budget

University

10 Qs

ACC2706 Standard costs, flexible budgets & MOH Week 11

ACC2706 Standard costs, flexible budgets & MOH Week 11

University

10 Qs

BENLAC GROUP 6: ECO-LITERACY

BENLAC GROUP 6: ECO-LITERACY

University

15 Qs

Quiz Web

Quiz Web

University

13 Qs

C program

C program

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

Dr. Mary

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?

Discover more resources for Education