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

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

Professional Development

15 Qs

quiz-placeholder

Similar activities

14 dec 2023 SRMIST  TRC MCA    AN

14 dec 2023 SRMIST TRC MCA AN

Professional Development

15 Qs

Mixed Conditionals

Mixed Conditionals

Professional Development

20 Qs

SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Professional Development

15 Qs

MTouch Pre-Test

MTouch Pre-Test

Professional Development

10 Qs

Phonetics 1

Phonetics 1

Professional Development

10 Qs

FL buoi 3. tro choi 1

FL buoi 3. tro choi 1

KG - Professional Development

14 Qs

Testing your knowledge Intermediate 7 unit 2

Testing your knowledge Intermediate 7 unit 2

Professional Development

20 Qs

B2.2 Unit 5 Inversions

B2.2 Unit 5 Inversions

9th Grade - Professional Development

20 Qs

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

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

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> void main() { int ch; printf("enter a value between 1 to 2:"); scanf("%d", &ch); switch (ch) { case 1: printf("1\n"); default: printf("2\n"); } }

1
2
1 2
Run time error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> void main() { int ch; printf("enter a value between 1 to 2:"); scanf("%d", &ch); switch (ch) { case 1: printf("1\n"); break; printf("hi"); default: printf("2\n"); } }

1
hi 2
Run time error
2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int a = 1, b = 1; switch (a) { case a*b: printf("yes "); case a-b: printf("no\n"); break; } }

yes
no
Compile time error
yes no

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int x = 97; switch (x) { case 'a': printf("yes "); break; case 97: printf("no\n"); break; } }

yes
yes no
Duplicate case value error
character case value error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { float f = 1; switch (f) { case 1.0: printf("yes\n"); break; default: printf("default\n"); } }

yes
yes defined behaviour
undefined behaviour
compile time error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> #define max(a) a int main() { int x = 1; switch (x) { case max(2): printf("yes\n"); case max(1): printf("no\n"); break; } }

yes no
yes
no
compile time error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { switch (printf("Do")) { case 1: printf("First\n"); break; case 2: printf("Second\n"); break; default: printf("Default\n"); break; } }

Do
DoFirst
DoSecond
DoDefault

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?