SlideShare a Scribd company logo
Embedded Systems
Eng. Mohammed Sokkaree
Agenda
•   Introduction to embedded Systems
•   Why embedded C
•   Interview questions
•   Q&A
Computing Systems
What’s ES?
• System designed to do one or a few dedicated
  and/or specific functions.
• combination of computer hardware and software
 ▫   Mp3 player
 ▫   Mobile
 ▫   Medical testing systems
 ▫   Anti-Lock Brakes
Embedded SW
•   Portability
•   Optimization
•   Quality
•   Readability
•   Complexity
•   HW Compatibility “ HW knowledge”
•   Min. Resources
Why embedded C?
Question 1
   RTD
Question 1
• Real time System
 ▫ Hard
 ▫ Soft
• CBT
Question 2
   SWE
Question 2
• Testing
 ▫ Types of testing
• Debugging
Question 3
 Pointers
Pointers Pointers & Pointers
• Using the variable a, give definitions for the
  following:
  ▫  a) An integer
  ▫ b) A pointer to an integer
  ▫ c) A pointer to a pointer to an integer
  ▫ d) An array of 10 integers
  ▫ e) An array of 10 pointers to integers
  ▫ f) A pointer to an array of 10 integers
  ▫ g) A pointer to a function that takes an integer as an
    argument and returns an integer
  ▫ h) An array of ten pointers to functions that take an
    integer argument and return an integer
Answer
• a) int a;           // An integer
• b) int *a;          // A pointer to an integer
• c) int **a;        // A pointer to a pointer to an integer
• d) int a[10];      // An array of 10 integers
• e) int *a[10];     // An array of 10 pointers to integers
• f) int (*a)[10];    // A pointer to an array of 10 integers
• g) int (*a)(int); // A pointer to a function a that takes
  an                 integer argument and returns an
  integer
• h) int (*a[10])(int); // An array of 10 pointers to
  functions that take an integer argument and return an
  integer
Question 4
  Macros
Question 4
      Functions        Function like
                         macros
              How it works
             Input arguments
Question 4 (Cont.)
• Write a macro to set the MSB



#define MSB(X) ((X) | (1 << ((sizeof(X)<<3) -1))
Question 5
 Variables
Question 5
•   Local
•   Global
•   Static
•   Extern
Question 6
 Tracing
Question 6

int main()                      X   Y
                                2   1
{
int x=1,y=1;                    3   1
for(;y;printf("%d %dn",x,y))   4   1
y=x++<=5;                       5   1
return 0;                       6   1
                                7   0
}
Thank you
Connect via LinkedIn

 http://eg.linkedin.com/in/engmohammed
Hi all,
   I have a basic C programming query.
  For the program,
  #define MAX(x,y) (x)>(y)?(x):(y)
  void main( )
  {
  int i=10, j=5, k=0;
  k=MAX(i++,++j);
  printf("%d %d %d",i,j,k);
  }
  I get the output as 12,6,11
  whereas, when I modify the program as below
  int max_fn(a,b);
  void main( )
  {
  int i=10, j=5, k=0;
  k = max_fn(i++,++j);
  printf("%d %d %d",i,j,k);
  }
  int max_fn(a,b)
  {
  return((a)>(b)?(a):(b));
  }
  In this case, I get the output as 11,6,10.
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

More Related Content

What's hot

OOP in C++
OOP in C++OOP in C++
OOP in C++
ppd1961
 
Newer management techniques for glioblastoma
Newer management techniques for glioblastomaNewer management techniques for glioblastoma
Newer management techniques for glioblastoma
abhitux
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
Dipta Saha
 
OO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual FunctionOO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual Function
Yu-Sheng (Yosen) Chen
 
Linee guida per la gestione del trauma cranio-encefalico
Linee guida per la gestione del trauma cranio-encefalicoLinee guida per la gestione del trauma cranio-encefalico
Linee guida per la gestione del trauma cranio-encefalicoMerqurioEditore_redazione
 
Military Robots
Military RobotsMilitary Robots
Military Robots
nsapre
 
DATABASE MANAGEMENT SYSTEM LAB.pdf
DATABASE MANAGEMENT SYSTEM LAB.pdfDATABASE MANAGEMENT SYSTEM LAB.pdf
DATABASE MANAGEMENT SYSTEM LAB.pdf
Prof. Dr. K. Adisesha
 
C++ Programming
C++ ProgrammingC++ Programming
Python Programming Module 3 (2).pdf
Python Programming Module 3 (2).pdfPython Programming Module 3 (2).pdf
Python Programming Module 3 (2).pdf
Thanmayee S
 
Notion of an algorithm
Notion of an algorithmNotion of an algorithm
Notion of an algorithm
Nisha Soms
 
BASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICSBASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICS
nishantsharma1705
 
MOBILE ROBOTIC SYSTEM
MOBILE ROBOTIC SYSTEMMOBILE ROBOTIC SYSTEM
MOBILE ROBOTIC SYSTEM
KARTHIK SRINIVAS
 
Oops Quiz
Oops QuizOops Quiz
Automated Guided Forklift
Automated  Guided  ForkliftAutomated  Guided  Forklift
Automated Guided Forklift
Abdelrahman M. Hassan
 
C++ Programming Course
C++ Programming CourseC++ Programming Course
C++ Programming Course
Dennis Chang
 
Core Java Equals and hash code
Core Java Equals and hash codeCore Java Equals and hash code
Core Java Equals and hash code
mhtspvtltd
 

What's hot (20)

OOP in C++
OOP in C++OOP in C++
OOP in C++
 
Clipping2
Clipping2Clipping2
Clipping2
 
Newer management techniques for glioblastoma
Newer management techniques for glioblastomaNewer management techniques for glioblastoma
Newer management techniques for glioblastoma
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
OO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual FunctionOO-like C Programming: Struct Inheritance and Virtual Function
OO-like C Programming: Struct Inheritance and Virtual Function
 
Linee guida per la gestione del trauma cranio-encefalico
Linee guida per la gestione del trauma cranio-encefalicoLinee guida per la gestione del trauma cranio-encefalico
Linee guida per la gestione del trauma cranio-encefalico
 
Morfologia del robot actu y sens
Morfologia del robot actu y sensMorfologia del robot actu y sens
Morfologia del robot actu y sens
 
Military Robots
Military RobotsMilitary Robots
Military Robots
 
DATABASE MANAGEMENT SYSTEM LAB.pdf
DATABASE MANAGEMENT SYSTEM LAB.pdfDATABASE MANAGEMENT SYSTEM LAB.pdf
DATABASE MANAGEMENT SYSTEM LAB.pdf
 
C++ Programming
C++ ProgrammingC++ Programming
C++ Programming
 
Python Programming Module 3 (2).pdf
Python Programming Module 3 (2).pdfPython Programming Module 3 (2).pdf
Python Programming Module 3 (2).pdf
 
Notion of an algorithm
Notion of an algorithmNotion of an algorithm
Notion of an algorithm
 
BASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICSBASICS and INTRODUCTION of ROBOTICS
BASICS and INTRODUCTION of ROBOTICS
 
MOBILE ROBOTIC SYSTEM
MOBILE ROBOTIC SYSTEMMOBILE ROBOTIC SYSTEM
MOBILE ROBOTIC SYSTEM
 
Oops Quiz
Oops QuizOops Quiz
Oops Quiz
 
Automated Guided Forklift
Automated  Guided  ForkliftAutomated  Guided  Forklift
Automated Guided Forklift
 
C vs c++
C vs c++C vs c++
C vs c++
 
Clean coding-practices
Clean coding-practicesClean coding-practices
Clean coding-practices
 
C++ Programming Course
C++ Programming CourseC++ Programming Course
C++ Programming Course
 
Core Java Equals and hash code
Core Java Equals and hash codeCore Java Equals and hash code
Core Java Equals and hash code
 

Viewers also liked

C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questions
adarshynl
 
Manufacturing Automation and Digitization
Manufacturing Automation and DigitizationManufacturing Automation and Digitization
Manufacturing Automation and Digitization
HCL Technologies
 
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
HCL Technologies
 
Advanced C Language for Engineering
Advanced C Language for EngineeringAdvanced C Language for Engineering
Advanced C Language for Engineering
Vincenzo De Florio
 
HCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded EngineeringHCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded Engineering
HCL Technologies
 
Embedded systems ___vlsi_design
Embedded systems ___vlsi_designEmbedded systems ___vlsi_design
Embedded systems ___vlsi_design
sartaj ahmed
 
Embedded C workshop
Embedded C workshopEmbedded C workshop
Embedded C workshop
Mostafa El-koumy
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
sartaj ahmed
 
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in SmartphonesInnovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
HCL Technologies
 
C Programming For Embedded Systems
C Programming For Embedded SystemsC Programming For Embedded Systems
C Programming For Embedded SystemsGanesh Samarthyam
 
Top 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answersTop 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answerstonychoper2406
 
Entrepreneurship in a nutshell
Entrepreneurship in a nutshellEntrepreneurship in a nutshell
Entrepreneurship in a nutshell
PiTechnologies
 
Standard embedded c
Standard embedded cStandard embedded c
Standard embedded cTam Thanh
 
DIC_video_coding_standards_07
DIC_video_coding_standards_07DIC_video_coding_standards_07
DIC_video_coding_standards_07aniruddh Tyagi
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4aniruddh Tyagi
 

Viewers also liked (18)

C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questions
 
Manufacturing Automation and Digitization
Manufacturing Automation and DigitizationManufacturing Automation and Digitization
Manufacturing Automation and Digitization
 
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
The Internet of Things. Wharton Guest Lecture by Sandeep Kishore – Corporate ...
 
Advanced C Language for Engineering
Advanced C Language for EngineeringAdvanced C Language for Engineering
Advanced C Language for Engineering
 
HCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded EngineeringHCLT Brochure: Embedded Engineering
HCLT Brochure: Embedded Engineering
 
Embedded systems ___vlsi_design
Embedded systems ___vlsi_designEmbedded systems ___vlsi_design
Embedded systems ___vlsi_design
 
Embedded C workshop
Embedded C workshopEmbedded C workshop
Embedded C workshop
 
Embedded questions
Embedded questionsEmbedded questions
Embedded questions
 
Digital to analog convertor
Digital to analog convertorDigital to analog convertor
Digital to analog convertor
 
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in SmartphonesInnovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
Innovation in Medical Devices – Embedded Blood Glucose Meter in Smartphones
 
Embedded Technology
Embedded TechnologyEmbedded Technology
Embedded Technology
 
C Programming For Embedded Systems
C Programming For Embedded SystemsC Programming For Embedded Systems
C Programming For Embedded Systems
 
Top 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answersTop 10 utilities engineer interview questions and answers
Top 10 utilities engineer interview questions and answers
 
Entrepreneurship in a nutshell
Entrepreneurship in a nutshellEntrepreneurship in a nutshell
Entrepreneurship in a nutshell
 
Standard embedded c
Standard embedded cStandard embedded c
Standard embedded c
 
DIC_video_coding_standards_07
DIC_video_coding_standards_07DIC_video_coding_standards_07
DIC_video_coding_standards_07
 
DVB_Arch
DVB_ArchDVB_Arch
DVB_Arch
 
whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4whitepaper_mpeg-if_understanding_mpeg4
whitepaper_mpeg-if_understanding_mpeg4
 

Similar to Embedded SW Interview Questions

Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...
Andrey Karpov
 
Who killed object oriented design?
Who killed object oriented design?Who killed object oriented design?
Who killed object oriented design?
Amir Barylko
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 development
Fisnik Doko
 
C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8
Christian Nagel
 
Yoyak ScalaDays 2015
Yoyak ScalaDays 2015Yoyak ScalaDays 2015
Yoyak ScalaDays 2015
ihji
 
The Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsThe Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation Platforms
Miguel Angel Horna
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
Hawkman Academy
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
Abhishekkumarsingh630054
 
C# - What's next
C# - What's nextC# - What's next
C# - What's next
Christian Nagel
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS Responsibilities
Brendan Eich
 
arrays
arraysarrays
arrays
teach4uin
 
A Replay Approach to Software Validation
A Replay Approach to Software ValidationA Replay Approach to Software Validation
A Replay Approach to Software ValidationJames Pascoe
 
C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)
Christian Nagel
 
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
Fwdays
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
UdhayaKumar175069
 
Survey of programming language getting started in C
Survey of programming language getting started in CSurvey of programming language getting started in C
Survey of programming language getting started in C
ummeafruz
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
ray143eddie
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
Alefya1
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
Knowledge Center Computer
 

Similar to Embedded SW Interview Questions (20)

Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...Expanding the idea of static analysis from code check to other development pr...
Expanding the idea of static analysis from code check to other development pr...
 
Who killed object oriented design?
Who killed object oriented design?Who killed object oriented design?
Who killed object oriented design?
 
C# 7 development
C# 7 developmentC# 7 development
C# 7 development
 
C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8C# 7.x What's new and what's coming with C# 8
C# 7.x What's new and what's coming with C# 8
 
Yoyak ScalaDays 2015
Yoyak ScalaDays 2015Yoyak ScalaDays 2015
Yoyak ScalaDays 2015
 
The Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation PlatformsThe Challenge of Bringing FEZ to PlayStation Platforms
The Challenge of Bringing FEZ to PlayStation Platforms
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
 
C# - What's next
C# - What's nextC# - What's next
C# - What's next
 
JS Responsibilities
JS ResponsibilitiesJS Responsibilities
JS Responsibilities
 
arrays
arraysarrays
arrays
 
A Replay Approach to Software Validation
A Replay Approach to Software ValidationA Replay Approach to Software Validation
A Replay Approach to Software Validation
 
C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)C# What's next? (7.x and 8.0)
C# What's next? (7.x and 8.0)
 
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov"Optimization of a .NET application- is it simple ! / ?",  Yevhen Tatarynov
"Optimization of a .NET application- is it simple ! / ?", Yevhen Tatarynov
 
Exploiting vectorization with ISPC
Exploiting vectorization with ISPCExploiting vectorization with ISPC
Exploiting vectorization with ISPC
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
 
Survey of programming language getting started in C
Survey of programming language getting started in CSurvey of programming language getting started in C
Survey of programming language getting started in C
 
270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions270 1 c_intro_up_to_functions
270 1 c_intro_up_to_functions
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
 

More from PiTechnologies

Mobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsMobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsPiTechnologies
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies PiTechnologies
 
Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0PiTechnologies
 
10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do
PiTechnologies
 
Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingupPiTechnologies
 
Developer's got talent iPhone
Developer's got talent iPhoneDeveloper's got talent iPhone
Developer's got talent iPhonePiTechnologies
 
Developer's Got Talent Keynote
Developer's Got Talent KeynoteDeveloper's Got Talent Keynote
Developer's Got Talent KeynotePiTechnologies
 
Innovation in Information Technology
Innovation in Information TechnologyInnovation in Information Technology
Innovation in Information Technology
PiTechnologies
 
PiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies
 
Pi technologies meeting tips
Pi technologies meeting tipsPi technologies meeting tips
Pi technologies meeting tips
PiTechnologies
 
Arm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologiesArm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologies
PiTechnologies
 

More from PiTechnologies (11)

Mobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurantsMobile apps & digital marketing for restaurants
Mobile apps & digital marketing for restaurants
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies
 
Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0Professional employee [PiTechnologies] v1.0
Professional employee [PiTechnologies] v1.0
 
10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do10 Things Really Amazing Employees Do
10 Things Really Amazing Employees Do
 
Web development meetingup
Web development meetingupWeb development meetingup
Web development meetingup
 
Developer's got talent iPhone
Developer's got talent iPhoneDeveloper's got talent iPhone
Developer's got talent iPhone
 
Developer's Got Talent Keynote
Developer's Got Talent KeynoteDeveloper's Got Talent Keynote
Developer's Got Talent Keynote
 
Innovation in Information Technology
Innovation in Information TechnologyInnovation in Information Technology
Innovation in Information Technology
 
PiTechnologies in cloud computing
PiTechnologies in cloud computingPiTechnologies in cloud computing
PiTechnologies in cloud computing
 
Pi technologies meeting tips
Pi technologies meeting tipsPi technologies meeting tips
Pi technologies meeting tips
 
Arm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologiesArm processor architecture awareness session pi technologies
Arm processor architecture awareness session pi technologies
 

Recently uploaded

Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 

Recently uploaded (20)

Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 

Embedded SW Interview Questions

  • 2. Agenda • Introduction to embedded Systems • Why embedded C • Interview questions • Q&A
  • 4. What’s ES? • System designed to do one or a few dedicated and/or specific functions. • combination of computer hardware and software ▫ Mp3 player ▫ Mobile ▫ Medical testing systems ▫ Anti-Lock Brakes
  • 5. Embedded SW • Portability • Optimization • Quality • Readability • Complexity • HW Compatibility “ HW knowledge” • Min. Resources
  • 8. Question 1 • Real time System ▫ Hard ▫ Soft • CBT
  • 10. Question 2 • Testing ▫ Types of testing • Debugging
  • 12. Pointers Pointers & Pointers • Using the variable a, give definitions for the following: ▫ a) An integer ▫ b) A pointer to an integer ▫ c) A pointer to a pointer to an integer ▫ d) An array of 10 integers ▫ e) An array of 10 pointers to integers ▫ f) A pointer to an array of 10 integers ▫ g) A pointer to a function that takes an integer as an argument and returns an integer ▫ h) An array of ten pointers to functions that take an integer argument and return an integer
  • 13. Answer • a) int a; // An integer • b) int *a; // A pointer to an integer • c) int **a; // A pointer to a pointer to an integer • d) int a[10]; // An array of 10 integers • e) int *a[10]; // An array of 10 pointers to integers • f) int (*a)[10]; // A pointer to an array of 10 integers • g) int (*a)(int); // A pointer to a function a that takes an integer argument and returns an integer • h) int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer
  • 14. Question 4 Macros
  • 15. Question 4 Functions Function like macros How it works Input arguments
  • 16. Question 4 (Cont.) • Write a macro to set the MSB #define MSB(X) ((X) | (1 << ((sizeof(X)<<3) -1))
  • 18. Question 5 • Local • Global • Static • Extern
  • 20. Question 6 int main() X Y 2 1 { int x=1,y=1; 3 1 for(;y;printf("%d %dn",x,y)) 4 1 y=x++<=5; 5 1 return 0; 6 1 7 0 }
  • 21.
  • 23. Connect via LinkedIn http://eg.linkedin.com/in/engmohammed
  • 24. Hi all, I have a basic C programming query. For the program, #define MAX(x,y) (x)>(y)?(x):(y) void main( ) { int i=10, j=5, k=0; k=MAX(i++,++j); printf("%d %d %d",i,j,k); } I get the output as 12,6,11 whereas, when I modify the program as below int max_fn(a,b); void main( ) { int i=10, j=5, k=0; k = max_fn(i++,++j); printf("%d %d %d",i,j,k); } int max_fn(a,b) { return((a)>(b)?(a):(b)); } In this case, I get the output as 11,6,10.