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

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

University

25 Qs

quiz-placeholder

Similar activities

TES Pemahaman Materi

TES Pemahaman Materi

University

20 Qs

TARANG Technical Quiz Round-2

TARANG Technical Quiz Round-2

University

20 Qs

Programming Concepts in C

Programming Concepts in C

University

20 Qs

Linked list 1

Linked list 1

University

20 Qs

C PROGRAMMING

C PROGRAMMING

University

25 Qs

CSE C Section

CSE C Section

University

20 Qs

C Questions for BCA & BSc

C Questions for BCA & BSc

University - Professional Development

30 Qs

TECH - C

TECH - C

University

30 Qs

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

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

Assessment

Quiz

Computers

University

Hard

Created by

Markkandan S 52305

FREE Resource

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

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?