Search Header Logo

SJIT ECE 2024 BATCH EMBEDUR ROUND-1 PRACTICE TEST

Authored by DINESH ADIKESAVAN

Education

Professional Development

Used 1+ times

SJIT ECE 2024 BATCH EMBEDUR ROUND-1 PRACTICE TEST
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is not a valid keyword in C language?

for

while

do-while

switch

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A C-style comment, simply surround the text with ___.

/* and */

// and //

//

/** and **/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many byte(s) does a char type take in C?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is correct with respect to the size of the data types in C?

char > int > float

char < int < float

int < char < float

int < chat > float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int x = 20;

x %= 3;

printf("%d",x);

return 0;

}

2

2.5

ERROR

WARNING

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

float x = 21.0;

x %= 3.0;

printf("%f",x);

return 0;

}

7

7.0

7.000000

ERROR

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

int a=0;

a=5||2|1;

printf("%d",a);

return 0;

}

1

7

0

8

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?