28 12 23         KLU         FN  CLUSTER 5

28 12 23 KLU FN CLUSTER 5

Professional Development

15 Qs

quiz-placeholder

Similar activities

VCE-ALPHA-18.11.2023-AN

VCE-ALPHA-18.11.2023-AN

Professional Development

15 Qs

SASI -1st year -DAY5-FN (22.12.23)

SASI -1st year -DAY5-FN (22.12.23)

Professional Development

15 Qs

SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Professional Development

15 Qs

SRM RMP-MCA -18.01.2024-FN

SRM RMP-MCA -18.01.2024-FN

Professional Development

15 Qs

Matrix

Matrix

Professional Development

15 Qs

SASI -1st year -DAY6-AN (23.12.23)

SASI -1st year -DAY6-AN (23.12.23)

Professional Development

15 Qs

14 dec 2023 SRMIST  TRC MCA    AN

14 dec 2023 SRMIST TRC MCA AN

Professional Development

15 Qs

13 dec 2023 SRMIST  TRC MCA    FN

13 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

28 12 23         KLU         FN  CLUSTER 5

28 12 23 KLU FN CLUSTER 5

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(void) { int arr[5] = { 1, 2, 3, 5, 7 }; int *ptr = (&arr + 1); printf("%d %d\n", *(arr + 1), *(ptr - 1)); return 0; }
2 5
3 5
2 7
3 7

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int a[][3] = {0, 1, 2, 3, 4, 5}; int (*ptr)[3] = a; printf("%d %d ", (*ptr)[0], (*ptr)[1]); ++ptr; printf("%d %d\n", (*ptr)[0], (*ptr)[1]); return 0; }
0 1 3 4
0 1 0 1
0 1 2 3
0 1 1 2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> void fun(char**); int main() { char *arr[] = { "bat", "cat", "fat", "hat", "mat", "pat" }; fun(arr); return 0; } void fun(char **p) { char *t; t = (p += sizeof(int))[-1]; printf("%s\n", t); }
mat
fat
hat
cat

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int arr[ ]={1.2, 2.4, 3.6, 4.8, 5}; int j, *ptr = arr; for(j = 0;j<5;j++) { printf("%d ", *arr); ++ptr; } }
2 2 2 2 2
1 1 1 1 1
1 2 3 4 5
None of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { char s[] = {'a', 'b', 'c', '\n', 'c', '\0'}; char *p, *str, *str1; p = &s[3]; str = p; str1 = s; printf("%d", ++*p + ++*str1-32); return 0; }
76
77
78
79

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int arr[5] = { 1, 3, 5, 7, 11 }; int *ptr; ptr = &arr; printf("%d", *ptr + 1); }
1
2
3
Runtime error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { static char *arr[ ] = {"bike", "bus", "car", "van"}; char **ptr[ ] = {arr+3, arr+2, arr+1, arr}; char ***p; p = ptr; **++p; printf("%s",*--*++p + 2); }
Nothing prints
ke
ike
Compilation 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?