Important Valeo Qs
Important Valeo Qs
Important Valeo Qs
0xff000000
- 0xff0000 78 56 34 12
-0xff0000 12 34 56 78
* i=4 , j=7
X=j || i++ && 1;
What are the values of I,x? i=4 , x= ?
-
i=5
5
4
4
, x=1
7
1
7
*Typical CAN speed? //// fee e5teyarat Tanya bas dol 2a2rab 7agten wana
metla5bata benhom
- 50K 500K b/s
- 500K 5M b/s
X=2*3+4*5 ,, x= ?
o 26
o 50
o 125
EEPRM Interface (ana dawart 3la el net w la2et el egaba de : SPI, IC) w
dol mawgoden f el e5teyarat
Static variables are saved in :
o Data segments ??
o Stack
o Heap
What
o
o
o
o Function argumenmts
o Number of calling function
Embedded development constraints: (choose more that one)
o Limited prower consumption
o Limited CPU pace
o Limited development budget
o Limited Memory resources
o Limited 7aga Tanya mshfakraha bas
kanfeehakelmetPower :D
Difference between Union and Structure (el e5telaf femeen beya5od
memory aktar w a3taqed en hwa el Union :D bas et2akedy ) union
Haygeblek code beta3 functinmaktob b taree2et el Macro w el function
7asallaha calling 5 marrat ,, el memory size beta3et el code da (ellihwa el
7al ya3ny :D) = 505??
Haygebleknafs el function maktoba bas mn 3er macro , b el tare2a el
3adeya ya3ny w bardo 7asallaha calling 5 maratbardo w el size f el 7ala
de =125 , hashra7lek leh on phone
UART
o Synchronous
o Asynchronous
o Asynchronous/Synchronous
USART
o Synchronous
o
o
Asynchronous
Asynchronous/Synchronous
Reentrant function
Ynf3 tf5olha w hya running
X=5
x=x ^ (1<<2) ,, //// ^ means XOR
LSB(Least Significant bit)= 0,
This line :
o
o
o
o
Set Bit 5 of x
Clear Bit 3 of x
Toggle bit 3 of x
Toggle bit 2 of x
Which of the next variable can be defined as volatile (el so2al da 7assa
ennokaza wa7da feehom yenfa3o sa7, bas hwa yasma7 be egaba wa7da
bas :D)
o Memory ...................Status register (el no2at de kalam wa2e3
menni :D)
o Global .......................
o Global variable that is used in multithreaded applications
If these numbers are pushed into stack in order 1,2,3 and 5,, the first one
wil pop is?
o 5
o 3
o 2
o 1
i=5
if (i-- >= 4)
write Hello;
Writeend;
o Hello
o End
o Hello then end
Write the "standard" MIN macro-that is, a macro that takes two
arguments and returns the smaller of the two arguments.
#define MIN(A,B) ((A) < = (B) ? (A) : (B))lwgaly <= w < a5tar anhy ?
El so2al da gali b el 7arf keda bas kan choice tab3n
i=1.5
Switch (i)
{Case 1 : cout<< 1;
Case 2 : cout<< 2;
Case 3 : cout<< 3;
Default: Cout<< 0;
}the results will be
o
o
o
1230
0
Compile Error
Input capture
o Capture I/O ports status
o Capture analoge signals
o Parameter based on timer, measure signals and speed