Arduino Questions and Answers – Interrupt Service Routine

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Interrupt Service Routine”. 1. What is the use of the Interrupt Service Routine in an Arduino? a) To automate functions b) To boot up the arduino c) To make more memory d) To exit any code that is running 2. What is the … Read more

advertisement

Arduino Questions and Answers – Variable Scope and Qualifiers

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Variable Scope and Qualifiers”. 1. What functions are a static variable visible to? a) Only Static Functions b) All Types of Functions c) Only Functions with a return type d) Only Non Static Functions 2. If a program has 4 functions then will … Read more

advertisement

Arduino Questions and Answers – Type Conversions

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Type Conversions”. 1. In C++ what type of operator is a cast operator? a) Unary b) Binary c) Ternary d) Quaternary 2. What is Type Casting? a) Converting a file from one type to another b) Creating new arrays c) Deleting the variable … Read more

advertisement

Arduino Questions and Answers – String Manipulation

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “String Manipulation”. 1. What is the special escape sequence for newline in C++? a) ‘\b’ b) ‘\m’ c) ‘\n’ d) ‘\\’ 2. What is the minimum number of arguments that the strcpy() function accept? a) 4 b) 3 c) 2 d) 1 3. … Read more

advertisement

Arduino Questions and Answers – Mathematical Functions

This set of Arduino Questions and Answers for Experienced people focuses on “Mathematical Functions”. 1. What is the math function to find out the minimum of 2 numbers? a) The min() function b) The minimum_number() function c) The m() function d) The minimumOf() function 2. What is the math function to find out the maximum … Read more

advertisement

Arduino Questions and Answers – Datatypes

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Datatypes”. 1. What is the output of the code given below? void setup() { Serial.begin(9600);}void loop() { String s=String(13,HEX); Serial.println(s);} a) 13 b) A c) B d) D 2. What is the output of the code given below? void setup() { Serial.begin(9600);}void loop() … Read more

advertisement

Arduino Questions and Answers – Time Functions

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Time Functions”. 1. What is the unit of delay in the code given below? void setup() { Serial.begin(9600);}void loop() { digitalWrite(10,HIGH); delay(1000); digitalWrite(10,LOW); delay(1000);} a) Milliseconds b) Microseconds c) Seconds d) Minutes 2. What is the return type of the micros() function? a) … Read more

advertisement

Arduino Questions and Answers – Looping

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Looping”. 1. Is there any difference between exit-controlled loop structure and entry-controlled loop structure? a) Yes b) No 2. What is the output of the code given below? void setup() { Serial.begin(9600);}void loop() { int i, j, n=3, temp; int a[3]={2, 1, 3}; … Read more

advertisement

Arduino Questions and Answers – Control Structures

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Control Structures”. 1. What is the output of the code given below? void setup() { Serial.begin(9600);}void loop() { int a=10; int b=12; int c=13; if(a>b && a>c) { Serial.println(a); } else if(b>a && b>c) { Serial.println(b); } else if(c>a && c>b) { Serial.println(c); … Read more

advertisement

Arduino Questions and Answers – Operators

This set of Arduino Multiple Choice Questions & Answers (MCQs) focuses on “Operators”. 1. What is the output of the following program if ‘a’ and ‘b’ are both supplied with 5V? int a=9;int b=10;void setup() { Serial.begin(9600); pinMode(a,INPUT); pinMode(b,INPUT);}void loop() { int x=digitalRead(a); int y=digitalRead(b); if(a!=b){ Serial.println(“Not Equal”); } else { Serial.println(“Equal”); }} a) Equal … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.