VCE-BETA-17.11.2023-AN

VCE-BETA-17.11.2023-AN

Professional Development

15 Qs

quiz-placeholder

Similar activities

VCE-GAMMA-21.11.2023-FN

VCE-GAMMA-21.11.2023-FN

Professional Development

15 Qs

28 12 23         KLU         FN  CLUSTER 5

28 12 23 KLU FN CLUSTER 5

Professional Development

15 Qs

TEST 8      SASI AN

TEST 8 SASI AN

Professional Development

15 Qs

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

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

Professional Development

15 Qs

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

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

Professional Development

15 Qs

091223    SASI AN

091223 SASI AN

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(19.12.23)

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

Professional Development

15 Qs

VCE-BETA-17.11.2023-AN

VCE-BETA-17.11.2023-AN

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

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?