Adblocker Detected

Adblocker

Quizack provides Online Quiz and Practice MCQs for Free. Please disable your Ad-Blocker so we can earn from ads and keep this project alive.

Embedded C Skill Assessment

ADVERTISEMENT
Quizack provides Embedded C MCQ practice question answers in an interactive format.

Embedded C MCQ

Learn and practice your skills with our MCQ question answers to improve your knowledge. MCQs list

Start Practice with MCQs

Embedded C Online Quiz

Quizack 10 minutes test will assess your knowledge and give you comprehensive results along feedback.

Start Quiz

Embedded C PDF Download

Download Free Embedded C MCQ questions answers PDF to practice and learn while are offline.

Download PDF

 

Used by 100s of Jobseekers and students

Used by 100s of Jobseekers and students

Focused questions for skill assessment

Focused questions for skill assessment

Premium questions with correct answers

Premium questions with correct answers

Related Skill Assessment

Free Sample Questions for Embedded C

Analyse the following code and choose its correct output from the given options.

#include<stdio.h>

int main()

{

int num1[9] = {3,2,3,4,5,2,3,9,2};

int *pt1, sm=0;

int a, b, p, z, n=9;

z = n;

pt1 = num1;

for (a = 0; a < z; a++)

{

    for (b = 0; b < z; b++)

    {

        if (a == b)

        {

            continue;

        }

        else if (*(pt1 + a) == *(pt1 + b))

        {

            p = b;

            z--;

            while (p < z)

            {

                *(pt1 + p) = *(pt1 + p + 1);

                p++;

            }

            b = 0;

        }

    }

}

for (a = 0; a < z; a++)

{

    sm=sm+num1[a];

}

printf("%d",sm);

return 0;

}


22

23

24

25

Answer:

23


In relation to the embedded C malloc() function, which of the following is the correct syntax for defining a header block with name hExample?


 typedef struct Header hExample {


 struct *ptr;


 unsigned int size;


}   


typedef hExample {

 struct *ptr hExample;

 unsigned int size;

} HEADER; 


typedef struct hExample {

 struct hExample *ptr;

 unsigned int size;

} HEADER; 


None of the above.

Answer:

typedef struct hExample {

 struct hExample *ptr;

 unsigned int size;

} HEADER; 



ADVERTISEMENT
ADVERTISEMENT