SASI -BATCH 3-DAY6-FN(25.11.23)

SASI -BATCH 3-DAY6-FN(25.11.23)

Professional Development

15 Qs

quiz-placeholder

Similar activities

TCS NQT Foundation Verbal Ability Questions: Grammar

TCS NQT Foundation Verbal Ability Questions: Grammar

Professional Development

10 Qs

15 dec 2023 SRMIST  TRC MCA    FN

15 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

December Quizz

December Quizz

Professional Development

15 Qs

THE CHARGE OF THE LIGHT BRIGADE

THE CHARGE OF THE LIGHT BRIGADE

5th Grade - Professional Development

20 Qs

Fable - Refresher Quiz

Fable - Refresher Quiz

Professional Development

17 Qs

VCE-BETA-17.11.2023-AN

VCE-BETA-17.11.2023-AN

Professional Development

15 Qs

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

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

Professional Development

15 Qs

VCE-GAMMA-21.11.2023-FN

VCE-GAMMA-21.11.2023-FN

Professional Development

15 Qs

SASI -BATCH 3-DAY6-FN(25.11.23)

SASI -BATCH 3-DAY6-FN(25.11.23)

Assessment

Quiz

English

Professional Development

Practice Problem

Hard

Created by

CCC info@ccc.training

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...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { const int a = 5; const int *ptr; ptr = &a; *ptr = 10; printf("%d\n", a); return 0; }

Compilation error
Garbage Value
Address
5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { printf("%d", sizeof(void *)); return 0; }

1
compilation error
Runtime error
4

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int a = 10, b = 6; int *ptr; ptr = &b; printf(" %d ", a **ptr); return 0; }

Pointer type error
Run time error
Compilation error
60

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(){ char array[5] = "Knot", *ptr, i, *ptr1; ptr = &array[1]; ptr1 = ptr + 3; *ptr1 = 101; for(i = 0; i < 4;i++) printf("%c", *ptr++); return 0; }

not
Knot
note
garbage value

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(){ int i = 5; void *vptr; vptr = &i; printf("\nValue of iptr = %d ", *vptr); return 0; }

5
garbage address
garbage value
Compile time error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int num = 10; // assume the address location is 2293436 printf("num = %d address = %u ",num, &num); num++; printf("\tnum = %d address = %u",num, &num); return 0; }

Compilation error
num = 10 address = 2293436 num = 11 address = 2293438
num = 10 address = 2293436 num = 11 address = 2293440
num = 10 address = 2293436 num = 11 address = 2293436

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(){ char *str1 = "First"; char *str2 = "Second"; switch(*str1){ case "First": printf("USAIN BOLT"); break; case "Second": printf("JUSTIN GATLIN"); break; default: printf("Others"); } return 0; }

USAIN BOLT
JUSTIN GATLIN
Compilation Error
Others

Create a free account and access millions of resources

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?