ARRAYS      B

ARRAYS B

Professional Development

30 Qs

quiz-placeholder

Similar activities

KLU- CLUSTER -6 DAY-7

KLU- CLUSTER -6 DAY-7

Professional Development

30 Qs

Python Programming 2nd Quiz

Python Programming 2nd Quiz

Professional Development

27 Qs

Guru sekolah makedonia

Guru sekolah makedonia

Professional Development

25 Qs

Toeic_Reading_Hacker 3_Part 5_Test 4

Toeic_Reading_Hacker 3_Part 5_Test 4

1st Grade - Professional Development

25 Qs

Morse Code and JavaScript 30 Question Quiz (Hard Level)

Morse Code and JavaScript 30 Question Quiz (Hard Level)

University - Professional Development

30 Qs

Unit 1 Exercises

Unit 1 Exercises

Professional Development

25 Qs

G8_ Life in the countryside (5)

G8_ Life in the countryside (5)

Professional Development

32 Qs

KLU- CLUSTER -6 DAY-4

KLU- CLUSTER -6 DAY-4

Professional Development

30 Qs

ARRAYS      B

ARRAYS B

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int arr[5]; printf("%d", sizeof(arr++)); return 0; } What will be the output of this program?
1
2
4
Compiler Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5}; printf("%p", arr + 3); return 0; } What will be printed by this program?
Address of arr[3]
Address of arr[0]
Address of arr[4]
Address of arr

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[-2]); return 0; }
3
2
1
Compiler Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int arr[5] = {1, 2, 3, 4, 5}; printf("%p", &arr[2]); return 0; }
Address of arr[0]
Address of arr[2]
Address of arr[4]
Compiler Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int nums[] = {1, 2, 3, 4, 5}; printf("%d", nums[2] - nums[1]); return 0; }
0
1
2
3

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[3]++); return 0; }
4
5
6
Compiler Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int main() { int data[5] = {1, 2, 3, 4, 5}; printf("%d", data[2] * 2); return 0; }
2
4
6
8

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?