RefreshYourBasics - Misra C
Quiz
•
Computers
•
Professional Development
•
Medium

Grace Nirubha
Used 17+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A project with unused type declarations is compliant or not with MISRA?
For example,
int16_t unusedtype ( void )
{
typedef int16_t local_Type;
return 67;
}
Compliant
Non-compliant
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The following macro example comes under
void use_macro ( void ) {
#define SIZE 4
#define DATA 3
use_int16 ( SIZE );
}
Assertion: A project containing unused macro declaration will lead to code
redundancy and unclear.
Reason: The unused macro will give an advisory action and leads to un-necessary memory space consumption
The Assertion and the Reason are correct but the Reason is not the correct explanation of the Assertion.
Both the Assertion and the Reason are correct and the Reason is the correct explanation of the Assertion.
Our Assertion is true but the Reason is false.
The statement of the Assertion is false but the Reason is true.
Both the statements are false.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#define DIV2(X) ( ( X ) / 2 )
void f ( void ) {
static uint16_t x = DIV2 ( 10 );
}
Macro to initialize with Static storage function call comes under
Compliant because call not permitted
Non- Compliant because call permitted
Compliant because call permitted
Non-Compliant because call not permitted
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The preprocessor will assume that the macro identifier has a value of zero if
Macro identifier has been defined and not used in preprocessor directive
Macro identifier has not been defined and used in preprocessor directive
Macro identifier has been defined and used in preprocessor directive
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Unintentional removal of code occurs if the source line containing a // comment ends with which of the following character?
\
/
*
/*
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not compliant with MISRA?
int16_t y[ 3 ][ 2 ] = { 1, 2, 0, 0, 5, 6 };
int16_t y[ 3 ][ 2 ] = { { 1, 2 }, { 0 }, { 5, 6 } };
int16_t y[ 3 ][ 2 ] = { { 1, 2 }, { 0, 0 }, { 5, 6 }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT compliant with MISRA?
( bool_t ) false
( int32_t ) 3U
( bool_t ) 3U
( bool_t ) 0
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
C Programming unit ist
Quiz
•
Professional Development
20 questions
C++ Assessment
Quiz
•
Professional Development
23 questions
Flutter full quiz
Quiz
•
Professional Development
20 questions
June'21 ESA Quiz
Quiz
•
Professional Development
26 questions
react-additional-class
Quiz
•
Professional Development
26 questions
TGFP-P2
Quiz
•
Professional Development
20 questions
แบบทดสอบวิชาไมโครโปรเซสเซอร์
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
