13 dec 2023 SRMIST  TRC MCA    FN

13 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

quiz-placeholder

Similar activities

TOEIC Reading

TOEIC Reading

University - Professional Development

20 Qs

Vocabulary: If You Build It...

Vocabulary: If You Build It...

3rd Grade - Professional Development

20 Qs

Gamma-AN-01.05.2024

Gamma-AN-01.05.2024

Professional Development

15 Qs

MEL Team Quiz

MEL Team Quiz

Professional Development

16 Qs

Dieses Titelbild ist eigentlich urheberrechtlich geschützt. Bestimmt.

Dieses Titelbild ist eigentlich urheberrechtlich geschützt. Bestimmt.

University - Professional Development

12 Qs

SASI -BATCH 3-DAY6-FN(25.11.23)

SASI -BATCH 3-DAY6-FN(25.11.23)

Professional Development

15 Qs

International Cuisine

International Cuisine

Professional Development

12 Qs

coding skills (ISCP 02) Tuesday slot1 (9am - 11:00am) CSE A & C

coding skills (ISCP 02) Tuesday slot1 (9am - 11:00am) CSE A & C

Professional Development

20 Qs

13 dec 2023 SRMIST  TRC MCA    FN

13 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> int main(){ struct simp{ int i = 6; char city[] = "chennai"; }; struct simp s1; printf("%d",s1.city); printf("%d", s1.i); return 0; }

chennai 6
Nothing will be displayed
Runtime Error
Compilation Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(){ struct st { int i; static int si; }; struct st s = {1, 2}; printf("%d %d", s.i, s.si); return 0; }

1 2
Linker Error
Runtime Error
Compilation Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

void main() { struct bitfields { int bits_1: 2; int bits_2: 9; int bits_3: 6; int bits_4: 1; }bit; printf("%d", sizeof(bit)); }

2
3
4
0

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { struct leader { char *lead; int born; }; struct leader l1 = {"AbdulKalam", 1931}; struct leader l2 = l1; printf("%s %d", l2.lead, l1.born); }

Compilation error
Garbage value 1931
AbdulKalam 1931
None of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> struct employee{ char *company; int salary; }; int main(){ struct employee e, e1; e.company = "CCC"; e1 = e; printf("%s %s", e.company, e1.company); return 0; }

Garbage value CCC
CCC Garbage value
CCC CCC
Compilation Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main(){ struct employee { int empid[5]; int salary; struct employee *s; }emp; printf("%d %d", sizeof(struct employee), sizeof(emp.empid)); return 0; }

6 4
36 20
32 20
40 10

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #include<string.h> struct player { char pname[20]; }pl; char* play(struct player *temp_pl){ strcpy(temp_pl->pname, "kohli"); return temp_pl->pname; } int main() { strcpy(pl.pname, "dhoni"); printf("%s %s", pl.pname, play(&pl)); return 0; }

dhoni kohli
dhoni dhoni
None
kohli kohli

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?