Search Header Logo

Embedded C Programming DA-1 (Part-1) - G2

Authored by Markkandan S 52305

Computers

University

Used 1+ times

Embedded C Programming DA-1 (Part-1) - G2
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.

OPEN ENDED QUESTION

2 mins • Ungraded

Register Number of the Student

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • Ungraded

Name of the Student

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements about C data types is false?

sizeof(char) is always 1.
The size of int can vary between different platforms.
float and double are always represented using IEEE 754 standard.
long long int guarantees at least 64 bits on all platforms.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following expression? int a = 10, b = 20; printf("%d", a+++b);

30
31
10
Compilation Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this code? int main() { int i = 5; do { i--; if(i<5) continue; printf("%d ", i); }while(i>0); }

5 4 3 2 1
4 3 2 1
5
Infinite loop

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this code? int main() { int a[] = {1, 2, 3}; int *p[] = {&a[0], &a[1], &a[2]}; printf("%d ", *p[0]++); return 0; }

1
2
3
Compile Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of below code? int main() { int arr[5] = {2, 4, 6, 8, 10}; int *ptr = &arr[2]; *ptr = 20; *(ptr - 1) = 10; printf("%d", arr[1]); return 0; }

4
10
20
Compiler Error

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?