Search Header Logo

Technical Skills- End Examin - 13-01-2024 ECE & EEE SEM V

Authored by CCC info@ccc.training

English

Professional Development

Used 1+ times

Technical Skills- End  Examin - 13-01-2024 ECE & EEE SEM V
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> enum happylife { a,b,c=5 }; enum happylife s; main() { c++; printf("%d",c); }

error
5
6
2

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

main() { enum resut {pass, fail}; enum result s1,s2; s1=pass; s2=fail; printf("%d",s1); }

error
pass
fail
0

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> enum example {a = 1, b, c}; enum example example1 = 2; enum example answer() { return example1; } int main() { (answer() == a)? printf("yes"): printf("no"); return 0; }

yes
no
2
error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define MAX 4 enum ccc { a,b=3,c }; main() { if(MAX!=c) printtf("hello"); else printf("welcome"); }

error
hello
welcome
2

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code if input given is 2? #include<stdio.h> enum day { a,b,c=5,d,e }; main() { printf("Enter the value for a"); scanf("%d",a); printf("%d",a); }

2
0
3
error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following C code if the code is executed on a 32 bit platform?#include <stdio.h> enum sanfoundry { c = 0, d = 10, h = 20, s = 3 } a; int main() { a = c; printf("Size of enum variable = %d bytes", sizeof(a)); return 0; }

error
Size of enum variable = 2 bytes
Size of enum variable = 4 bytes
Size of enum variable = 8 bytes

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> union stu { int ival; float fval; }; void main() { union stu r; r.ival = 5; printf("%d", r.ival); }

9
compile time error
16
5

Access all questions and much more by creating a free account

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?