13 dec 2023 SRMIST  TRC MCA    FN

13 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

quiz-placeholder

Similar activities

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

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

Professional Development

15 Qs

SRM RMP-MCA -18.01.2024-FN

SRM RMP-MCA -18.01.2024-FN

Professional Development

15 Qs

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

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

Professional Development

15 Qs

Matrix

Matrix

Professional Development

15 Qs

VCE-GAMMA-21.11.2023-AN

VCE-GAMMA-21.11.2023-AN

Professional Development

15 Qs

SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Professional Development

15 Qs

SASI -BATCH 3-DAY6-FN(25.11.23)

SASI -BATCH 3-DAY6-FN(25.11.23)

Professional Development

15 Qs

TEST 8      SASI AN

TEST 8 SASI AN

Professional Development

15 Qs

13 dec 2023 SRMIST  TRC MCA    FN

13 dec 2023 SRMIST TRC MCA FN

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(){ 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?