15 dec 2023 SRMIST  TRC MCA    FN

15 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

quiz-placeholder

Similar activities

SIO MJV QUIZZ

SIO MJV QUIZZ

Professional Development

13 Qs

Barron's  Chapter   17 TOEFL   Vocabulary

Barron's Chapter 17 TOEFL Vocabulary

Professional Development

20 Qs

BATCH 1 Q2 GAME-BASED REVIEW

BATCH 1 Q2 GAME-BASED REVIEW

Professional Development

12 Qs

SASI -1st year -DAY4-FN (21.12.23)

SASI -1st year -DAY4-FN (21.12.23)

Professional Development

15 Qs

SASI -1st year -DAY4-AN (21.12.23)

SASI -1st year -DAY4-AN (21.12.23)

Professional Development

15 Qs

DSBS-AN-31.01.2024

DSBS-AN-31.01.2024

Professional Development

15 Qs

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G

coding skills (ISCP 02) Tuesday slot2 (11am - 1:00pm) CSE E & G

Professional Development

20 Qs

VCE-GAMMA-21.11.2023-AN

VCE-GAMMA-21.11.2023-AN

Professional Development

15 Qs

15 dec 2023 SRMIST  TRC MCA    FN

15 dec 2023 SRMIST TRC MCA FN

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> main() { typedef int a; a b=2, c=8, d; d=(b*2)/2+8; printf("%d",d); }

10
16
8
error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #include<string.h> typedef struct employee { char name[50]; int salary; } e1; void main( ) { printf("Enter Employee name"); scanf("%s",e1.name); printf("\n%s",e1.name); }

world.name
nworld
world
error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the size of myArray in the code shown below? (Assume that 1 character occupies 1 byte) typedef char x[10]; x myArray[5];

5bytes
10bytes
40 bytes
50 bytes

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { typedef union a { int i; char ch[2]; }hello; hello u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d", u.ch[0], u.ch[1]); return 0; }

2, 3
3, 2
32
error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { typedef union a { int i; char ch[2]; }hello; hello u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d", u.ch[0], u.ch[1]); return 0; }

20
10
5
2

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> typedef int Arr[4]; // Driver code int main() { Arr temp = { 10, 20, 30, 40 }; printf("typedef using an array\n"); for (int i = 0; i < 4; i++) { printf("%d ", temp[i]); } return 0; }

typedef using an array 10 20 30 40
typedef using an array 30 40 10 20
typedef using an array 40 30 20 10
compile time error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which member of the union will be active after REF LINE in the following C code? #include <stdio.h> union temp { int a; float b; char c; }; union temp s = {1,2.5,’A’};

a
b
c
Such declaration are illegal

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?