SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Professional Development

15 Qs

quiz-placeholder

Similar activities

VCE-BETA-17.11.2023-AN

VCE-BETA-17.11.2023-AN

Professional Development

15 Qs

Sasi-FN-04.05.2024

Sasi-FN-04.05.2024

Professional Development

15 Qs

DSBS-FN-30.01.2024

DSBS-FN-30.01.2024

Professional Development

15 Qs

VCE-GAMMA-21.11.2023-FN

VCE-GAMMA-21.11.2023-FN

Professional Development

15 Qs

VCE-ALPHA-25.11.2023-AN

VCE-ALPHA-25.11.2023-AN

Professional Development

15 Qs

DSBS-AN-29.01.2024

DSBS-AN-29.01.2024

Professional Development

15 Qs

15 dec 2023 SRMIST  TRC MCA    FN

15 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

SASI -1st year -DAY1-AN(18.12.23)

SASI -1st year -DAY1-AN(18.12.23)

Professional Development

15 Qs

SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 2+ 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?