Cisco is NETWORKING based company. You MUST have at least the minimum knowledge, and taste of network with you. You can also get CCNA,and CCNP degrees from Cisco..
In the following post. I do my best to transfer to main important concepts
Part 1: Introduction to networking:
Modems : This is the very first device between your equipment that connect your computers to the internet cloud.[DSL or Digital Subscriber Line(12Mbps is the Maximum of this technology, Asynchronous and download is faster than upload, and speed is always fix), T1, T2,T3, cable, fiber optic,comcast modems]
Routers: behind the modem, there is device called router, and it responsible for routing data in the network
Firewalls: underneath the router, firewall exists to protect your device from hackers
Switches: is located under firewall as the spliter of internet signal : HUBs was old concept of Switches. JUST trow them in garbage. Hub has no intelligent and basically split internet between users and it causes problem, but Switches knows how to transfer data. Switches may have different ports from 4 to hundred, thousands. We have managed and un-managed switch. Manage version allows you to go into the switch and program to do certain things like quality of the service.. 10Mbps[old days]/100Mbps[nowadays]/ 1000Mbps [latest technology]
Wireless Access Points: will allow wireless devices, and computers to connect to your network. standards are 802.11 family [a[old and nobody use them nowadays, and is not compatible with other standard], b[11Mbps],g,n[allows much larger area to cover, faster, suitable for VOIP],ac]
Defines Logical and Physical: [Not necessary the same concepts]. For example physically you may have one device including modem+ router + firewall + Switch but logically they for devices. Even you may connect your computer to a switch share with other computer but you not logically connected to the same network
Speed :first of all b=bit and B=Byte and the you should know that speed is measured in bps means bit per second
VPN: Virtual Private Network.: Somebody out of physical network becomes a member of your internal network
Cabling : jack-patch panel
Clients, Devices and Servers: Everything on the network is called network device, Server:is a network device that provide something for the rest of the network, Clients: is a network device that receives ar service from service
Part 2: Understanding broadband technologies
I learnt Python from Google Developer Python class, and I recommend you to start learning it as a fast scripting language.
This topic is also known as timing analysis.
There three type of testing approaches in digital designs:
1-We design, without considering a part for test inside the design, and after it we apply a test pattern to cover a large portion of the faults
2- Design for testablility. such as BIST (Built-In-Self-Test) normally come up with design i FPGA boards
3- Fault tolerant design: In this type of design, we consider a good margin to tolerate errors
Fault sources:
1- In design process: It can happen in two parts; specifications and implementation
2-Device defects
3-Manufacturing process: It happens in material
Fault types:
1- Dynamic: is more related to timing
2- Static: is more related to wiring faults, two wire close to each other and etc.
Test Models: (very simple fault model: Stuck-at faults)
1 – Stuck-at-0 (s-a-0)
2 – Stuck-at-1 (s-a-1)
Combinational Circuits- Test pattern generation
We have Fault vectors (F), and test vectors (T)
Fault Simulation: Given a test vector, by simulating the circuit with the fault, identify all the faults covered by the test vector, It the output is different this test vector can detect that fault
Test Generation: Given a fault, identify all the test vectors which can cover that fault.
Limitations: 1-We expect one fault to occur[max] 2- Fault other than Stuck-at-fault are expected to show up as stuck-at-faults at some other location 3- these approaches are valid only for combinational circuits
Typical Circuit Enhancement:
1- Insertion of test points: We increase number of outputs
2-Pin amplification: We multiplex the function of the pin
3-Test modes:
4- Scan chains: We can test all pins from a pin
Will be continued ….
You can ignore this post as, I have never asked, or heard from my gangs who got interview at Cisco hardware team, that any questions related to MATLAB were asked there. I personally had a tutoring sessions with my students at McGIll, and I decided to review MATLAB here for you, as you are an engineer and having knowledge of MATLAB is a MUST for you.
Note: What in many other programming languages can only be done with loops, Matlab can often do with vectors
Desktop calculations:1-At the end of each command line putting ; will not echo the input
2- Arithmetic: + – * / \(left and right divisions, note that MATLAB has two operation for division) ^ : Then 6/3 is 2 and 3\6 is 2, too.
3- Last line editing: by pressing Up/Down buttons; you can recall the last line
4- A few built-in functions: sin(x), cos(x), tan(x), sqrt(x), exp(x), log(x), log10(x), acos(x), asin(x), atan(x), atan2(x,y)
5- Naming constants and variables: MATLAB is Case-sensitive. Therefore, Pi, Pi, PI; pi are different 7- Format: 5 digits display is default, but 15 digits display can be achieved by command: format long, for scientific nation command is format short e.
6- Cleaning the screen: clc
7- NaN : Not a Number : I got reject from a company by not knowing it. These values result from operations which have undefined numerical results
One-dimensional arrays
1-Define a row and column matrix: space and comma are equal [1 2 3] = [1,2,3]
2-Indexing for a matrix(x,y)
3- Size of a matrix: size(Matrix), Length of vector: length(Matrix)
4- Clearing variables: clear
5- Add/subtract to matrix A+B. A-B, array multiplication A.*B, array division A./B. Array power A.^n
6- Defining equally distance elements, A=[1:1:10];
7-Simple plots: plot(x,y,’color’), grid on/off, xlabel(‘’), ylabel(‘’), figure, hold on/off, hist(Y,X)
Matrices
1- Defining a matrix: A=[1 2 3;4 5 6]
2- Juxtaposition and sub matrix C= [A B], C=[A;B], C=A(:,1), A(:,1), A(1:2,1:2’]
3- Elementary operations with matrices A+B, A-B, A.*B and A*B, A./B
4-ones(m,n), zeros(m,n)
Complex numbers
1-imaginary unit is i or j but j is preferred professionally, since, ‘i’ is as current unit in electrical engineering , note that there is no need to write * before i,j
2- real part: real(Z), imaginary part: imag(Z), magnitude abs(Z), angle by angle(Z)
3- Arrays of complex numbers
System of linear equations: AX=B
1- Determinant: det(A)
2- Crammer’s rule: X=[det(D1);det(D2);det(D3)]/det(A), D1=A, D1(:,1)=B, D2=A, D2(:,2)=B, …..
3- Matrix inversion inv(A)
4-Solving systems of linear equations in MATLAB
Polynomials
1-Polynomial representation: by its coefficients
2- Getting roots: roots(coeff)
3- Multiplication is achieved by convolving conv(c1,c2)
4-Division is achieved by deconvolving deconv(c1,c2)
Programming in MATLAB
1- Programming a function: function y=Alan(x1, x2)
2- Repetitive control structure- FOR LOOPS: e.g. for K=1:1:10 P(1,k) =sqrt(k); End
3- Conditional control structure:
If condition
Expression
Elseif condition >>>>>> look at the here elseif are one work but in C++ it was else if
Expression
Expression
Else
Expression
end
4- Repetitive control structure- WHILE LOOP
External files and programs:
1-Saving data: save filename.mat variable / save(filename, variables)
2- Loading data X=load(filename.)
Differential and integral
1- Calculating differential: diff(x)/interval : consider that length of diff(x) is less that length of x
2- Calculating Integral: sum(x)*interval Working with strings
String in MATLAB are string of characters
- Alway use single quote to define a string
- Adding two strings of x,y back to back is possible by strcat() , using + sign is a mistake
- Several ways to print a string out to workspace: Formatting strings in MATLAB:
- Type the name of the variable w/o a trailing semicolon
- disp() is almost the same as above, except it does not print out the variable name
- fprintf() is for formatting text and printing out to a file or other device, such as the workspace. It is a very powerful command for formatting strings, combining them, and printing them out
- sprintf() is for formatting text in order to create new string variable
- Note that : using cell array for many elements are better that making matrix of the names = [‘Jonas’,’Fred’,’John’] meansnames = JonasFredJohn butnames = {‘Jonas’,’Fred’,’John’} means names = ‘Jonas’ ‘Fred’ ‘John’
- Cell arrays can mix and match data types
- Structures can be used to organize and group information
Working with files
- fopen() -> fid = fopen(filename, permission) ; fid: number returned by fopen which you will use to refer to this file, permission: ‘r’,’w’, ‘a’
- fclose()
- Other ways to write to files: ìcsvwrite(), ìdlmwrite()
>> myFileID = fopen(‘testfile.txt’,’w’)
myFileID = 3
>> x = 100;
>> fprintf(myFileID,’X isequal to %d\n’,x);
>> fclose(myFileID);
I am uploading a series of videos on my YouTube channel , but it’s matter of time. Please subscribe. and get the latest updates
Meanwhile, I introduce the following:
- Testbench.in : System Verilog and VMM tutorial with a lots of example
- Asicguru.com : Another nice SV tutorial site
- Doulos SV Tutorial : Not that much extensive, but still good
- Another decent tutorial from Project-Veripage
- SV Tutorial from ASIC-World. It is not yet complete, but once it is complete, then it will be another great site to learn SV.
I am uploading a series of videos on my YouTube channel , but it’s matter of time. Please subscribe. and get the latest updates.
You can easily learn VHDL from my YouTube videos very fast
For hardware interview you will have to know your DSD class very well. Review your logic gates, definition of buffer, multiplexer, FIFO, and etc. Let’s start review: Review: Part 1: On a periodic signal:
Duty cycle: Pulse width/Period
Rise time: time from %10 of pulse amplitude to %90 of pulse amplitude [For the step function]
Fall time: time from %90 of pulse amplitude to %10 of pulse amplitude [For the step function]
Transition time: Switching time between two valid states: can be Rise time or Fall time [For the step function]
Propagation delay/gate delay: Time that response changes from initial value to %50 of final value. Propagation delay increases with operating temperature.The term low,high speed comes from propagation delay. Wires have an approximate propagation delay of 1 ns for every 6 inches (15 cm) of length.Logic gates can have propagation delays ranging from more than 10 ns down to the picosecond range, depending on the technology being used. For delay calculation watch this video from UC-Burkeley
Setting time: is the time elapsed from the application of an ideal instantaneous step input to the time at which the amplifier output has entered and remained within a specified error band, usually symmetrical about the final value[related to the output]
Converters:
ADC: and make yourself familiar with difference of sampling (Nyquist rate),Quantization, and digitization DAC
IC gates technology:
SSI: 1-11 gates
MSI: 12-100 gates
LSI: 100-10k gates
VLSI: above 10k gates
IC packing technology:
Dual side: DIP (Dual Inline Packaging)
- First two letters are used to specify the manufacturers’ name e.g. ST is used for company named ST microelectronics.
- Then we have 74/54 for TTL ICs. 74 is used for normal use ICs while 54 ICs are military-grade ICs and have higher operating temperature and are robust in voltage levels.
- Next 2-letter tells us about the circuitry. E.g. LS is used for Low power Schottky i.e. schottky diodes and transistor are used in the circuitry to decrease the power supply.
- And next letter tell us about the function of the IC e.g. 08 is for AND gate
Quad side: BCC: Bump Chip Carrier CLCC: Ceramic Leadless Chip Carrier Leadless chip carrier (LCC): Leadless Chip Carrier, contacts are recessed vertically. LCC: Leaded Chip Carrier LCCC: Leaded Ceramic Chip Carrier DLCC: Dual Lead-Less Chip Carrier (Ceramic) PLCC: Plastic Leaded Chip Carrier
IC transistor technology:
TTL: 5-volt power suppl;not sensitive to electrostatic discharge CMOS: 3-volt power supply-less power consumption
Digital measuring devices:
DMM: Digital Multi-meter Logic analyzer logic prob Pulser
Part 2) Number System, code:
Decimal, Binary, Binary number formats(Bit, Nibble, Byte, Word, Double word) Octal System,Hexadecimal System, and conversion between them (My C++ codes for these conversions )
Add, subtract (with/without compliment method),Multiplication, and division Compliments(r’s compliment, (r-1)’s compliment)-subtraction with these two
Rule of thumb (r-1’s compliment ): Start from LSD to the left, leave all the zeros, and first non-zero digit untouched, then invert all of higher significant digits
Rule of thumb (r’s compliment): Invert all digits one by one Codes: BCD-Excess code -Gray code (check out here to learn conversion). (My C++ codes for these conversions),party bit Benefit of X-3: compliment 9 is obtained by compliment 1 in binary Benefit of Gray codes: In telecommunication and minimizing errors while transferring
Part 3) Binary logic
Logic gates (AND;represented by dot (.)- OR;epresented by plus (+), NOT;represented by bar or apostrophe (‘),XOR, NAND, NOR)
Truth table Boolean Algebra (Associative Law, Commutative Law, Identity element, Compliment, Boundedness Law, Distributive law, DeMorgan Law, Absorption law, Elimination law, Unique compliment theorem, Concensus theorem, Canonical forms:Min term, Max term)
Rule of thumb for min term: We put a 0 for the literal with compliment (‘) and a 1 for the literal without compliment and then take its binary equivalent
Rule of thumb for max term: We put a 1 for the literal with compliment (‘) and a 0 for the literal without compliment and then take its binary equivalent
Sum of products (SOP), Product of sums (POS)
Rule of thumb: The compliment of the function expressed in terms of sum of min terms can be obtained by taking sum of missing min terms in the original functions, and The compliment of the function expressed in terms of product of max terms can be obtained by taking product of max missing terms in the original functions
Rule of thumb for SOP, POS conversion: The function expressed in terms of product of max terms can be converted to sum of min terms or vice-versa can be done by interchanging π & ∑ and list the numbers which were missing from the original function.
Note: There is a limit on the extension of number of inputs which is known as fan-in Tri-state gates: High, Low, High Impedance(Z);Such gates have an extra input which is called enable input. Universal gates: NAND, NOR are called universal gates as any digital function can be implemented by using only NAND or NOR gate alone.
Combinational and sequential both type of circuits can be implemented using NAND or NOR gate
Special characteristics of ICs: Fan-out, Fan-in, Power dissipation (in mW),Propagation delay(nSec),Noise margin
Note: Some gates like XOR, BUFFER, INVERTER consume loading factor of 2 i.e. their load is equivalent to 2 usual gates.
Note: Noise margin should be as high as possible.
Note: By adjusting operating point of transistors, we can reduce the power dissipation of the gate but it increases delay in system .
Part 4) K-MAPS
Karnaugh map method (K-map), Don’t care, Redundant group,
Part 5) Combinational circuits
Adders (Half adder, Full adder);we can implement the Full Adder using 2 half adders and one OR gate.
Binary Adders : Serial adder, Parallel adder: Carry Ripple Adder or CRA(for n-bit adder we have the total time taken as (2n+1) Δ),Carry Look Ahead Adder CLA ()
Subtractors (Half Subtractor, Full Subtractor)
Binary Subtractor: Serial Subtractor, Parallel Subtractor,Subtraction using adder, Addition and subtraction using single circuit
Comparators: 1 Bit,2 Bit, Obtaining higher order comparator from low order comparator
Encoder, Decoder: Implementing a full adder using 3-to-8 decoder, Obtaining higher decoder from lower decoders
Multiplexer, Demultiplexer: Boolean function implementation using MUX
The binary information stored in the memory element that is fed back into the circuit defines the state of the circuitSynchronous circuits,Asynchronous circuitsFALLING (TRAILING) EDGE, RISING EDGEFLIP-FLOP (FF) or BISTABLE MULTIVIBRATORLatches(LEVEL SENSITIVE): RS, D, JK, T ; There is a concern on timing of latchesRace around problem (PROBLEM IN JK & T LATCH):When we have J=1, K=1 or T=1 then output is complimented and if CLK (OR E) is still HIGH, then when the new output is fed back, output is complimented again and this way output is continuously complimented.To Avoid, we can make sure that pulse width of the clock is less than the propagation delay of the Latch. Due to this restriction JK & T latches are generally not used in this form but as edge triggered flip-flopsSetup and Hold time, METASTABLE STATE(METASTABILITY), propagation time (This is also called CLOCK TO Q delay)Notes: Hold time can be n negative which means the data can change slightly before the clock edge and still be properly captured. Most of the current day flip-flops has zero or negative hold timeTo avoid setup time violations:
- The combinational logic between the flip-flops should be optimized to get minimum delay.
- Redesign the flip-flops to get lesser setup time.
- Tweak launch flip-flop to have better slew at the clock pin, this will make launch flip-flop to be fast there by helping fixing setup violations.
- Play with clock skew (useful skews).
To avoid hold time violations:
- By adding delays (using buffers).
- One can add lockup-latches (in cases where the hold time requirement is very huge, basically to avoid data slip).
Note: What is the difference between LATCH & FLIP-Flop?Ans: We can easily find the answer after going through the theory given:
- Latches are level sensitive while flip-flops are edge sensitive devices
- Hence latches faces problems like glitches in the output while no such problem occurs in flip-flops.
- As we can see from different circuits given earlier, we need more gates to implement flip-flops than latches
Master slave flip-flop
PROBLEM IN MASTER SLAVE:
Note: Maximum Frequency of the clock signal: check out these three nice questions
Tmin = CLK to Q delay + SETUP time+ c-delay
Fmax= 1/ Tmin = 1/( TCLK-to-Q + TSETUP+ c-delay)
Excitation table of FFs : is actually exact opposite of what a truth table is. The truth table for the flip-flop gives us the output for the given combination of inputs and present output while an excitation table gives the input condition for the given output change.
CONVERSION OF ONE FLIP-FLOP TO OTHER
1-RS flip-flop to D flip-flop
2-RS flip-flop to JK flip-flop
3-D Flip-flop to RS flip-flop:
4- D to T & T to D FF
Memory/ Registers
Counters: Ring/Johnson/ASYNCHRONOUS COUNTERS (Mod-2)/ Ripple counter (MOD-2n)/Counter other than MOD-2n
Down counter
Glitch:A glitch is an unwanted pulse which gets generated due to little difference in the delays of signals. Whenever signals with glitches are used as clock then glitches causes unwanted triggering of the flip-flop.
Clock Skew: It is a phenomenon in which there is a difference between the times at which clock signal reaches different components in synchronous circuits. Or we can say that clock signal from clock circuitry reaches different components in the circuit at different times
Part 7) Specific Circuits
555 Timers: They are widely used and have two modes: Monostable, Astable
Schmitt Trigger: This is used to sharpen up falling and rising edges of DATA signal.
I just started gathering information. To review some interview questions on digital electronics check out here It will be completed shortly….
This is time for technical interview with Cisco. In this post, I try to review some C/C++ questions or put the best links to guide you best series of questions that you can study. First of all, I want to recommend you a book that all of the programmers read before interviewing with giant software companies such as Microsoft, Google, Amazoon, facebook, SAP. I cant even count how many of my friends got a job or internship in these companies by reading this book. This book is called “Cracking the coding interview” by GAYLE LAAKMANN. Secondly, I’d like to put some C/C++ codes that are asked in interviews Thirdly, let me ask you some conceptual questions. subject by subject…
part 1: The C language basics
============================================================================================
1. What is a local block?
2. Should variables be stored in local blocks?
3. When is a switch statement better than multiple if statements?
4. Is a default case necessary in a switch statement?
5. Can the last case of a switch statement skip including the break?
6. Other than in a for statement, when is the comma operator used?
7. How can you tell whether a loop ended prematurely?
8. What is the difference between goto and long jmp( ) and setjmp()?
9. What is an lvalue? VS rvalue
10. Can an array be an lvalue? NO!!
11. What is an rvalue?
12. Is left-to-right or right-to-left order guaranteed for operator precedence?
13. What is the difference between ++var and var++?
14. What does the modulus operator do?
There are two type of control structures: -conditional;(if and switch-case) and loops (for,while, do-while)
If you have introduce variable for for loop you just have write for(;i<10;i=i+1)
Part 2: Bits and Bytes
============================================================================================
1. What is the most efficient way to store flag values?
2. What is meant by “bit masking”?
3. Are bit fields portable?
4. Is it better to bitshift a value than to multiply by 2?
5. What is meant by high-order and low-order bytes?
6. How are 16- and 32-bit numbers stored?
Part 3 : Pre-processors
============================================================================================
1. What is a macro, and how do you use it?
2. What will the preprocessor do for a program?
3. How can you avoid including a header more than once?
4. Can a file other than a .h file be included with #include?
5. What is the benefit of using #define to declare a constant?
6. What is the benefit of using enum to declare a constant?
7. What is the benefit of using an enum rather than a #define constant?
8. How are portions of a program disabled in demo versions?
9. Is it better to use a macro or a function?
10. What is the best way to comment out a section of code that contains comments?
11. What is the difference between #include and #include “file” ?
12. Can you define which header file to include at compile time?
13. Can include files be nested?
14. How many levels deep can include files be nested?
15. What is the concatenation operator?
Part no. 4: Arrays
============================================================================================
1. Do array subscripts always start with zero?
2. Is it valid to address one element beyond the end of an array?
3. Can the sizeof operator be used to tell the size of an array passed to a function?
4. Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
5. Can you assign a different address to an array tag?
6. What is the difference between array_name and &array_name?
7. Why can’t constant values be used to define an array’s initial size?
8. What is the difference between a string and an array?
part 5: Variables
============================================================================================
1. Where in memory are my variables stored? (data segment-stack-Heap)
2. Do variables need to be initialized?
3. What is page thrashing?
4. What is a const pointer?
5. When should the register modifier be used? Does it really help?
6. When should the volatile modifier be used? – I bet you have never heard this question 😉
7. Can a variable be both const and volatile?
8. When should the const modifier be used?
9. How reliable are floating-point comparisons? -Floating-point numbers are the “black art” of computer programming.!!!
10. How can you determine the maximum value that a numeric variable can hold?
11. Are there any problems with performing mathematical operations on different variable types?
12. When should a type cast be used?
13. When should a type cast not be used?
14. Is it acceptable to declare/define a variable in a C header?
15. What is the difference between declaring a variable and defining a variable?
16. Can static variables be declared in a header file?
17. What is the benefit of using const for declaring constants?
Part 6: Functions:
============================================================================================
1. When should I declare a function?
2. Why should I prototype a function?
3. How many parameters should a function have?
4. What is a static function?
5. Should a function contain a return statement if it does not return a value?
6. How can you pass an array to a function by value? Passing arrays of any kind to functions can be very costly in several ways!! Instead of passing arrays to functions by value, you should consider passing arrays to functions by reference
7. Is it possible to execute code even after the program exits the main() function?
8. What does a function declared as PASCAL do differently? 😉
9. Is using exit() the same as using return?
Part 7: Pointers- All the times asked part 😉
============================================================================================
1. What is indirection?
2. How many levels of pointers can you have?
3. What is a null pointer?
4. When is a null pointer used? 😀
5. What is a void pointer?
7. Can you subtract pointers from each other? Why would you?
8. Is NULL always defined as 0(zero)?
9. Is NULL always equal to 0(zero)?
10. What does it mean when a pointer is used in an if statement?
11. Can you add pointers together? Why would you?
12. How do you use a pointer to a function?
13. When would you use a pointer to a function?
14. Can the size of an array be declared at runtime?
15. Is it better to use malloc()or calloc()?First, is in the number of arguments. Malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments. Secondly, malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to ZERO. ….
16. Is it better to use malloc()or calloc()? 16. How do you declare an array that will hold more than 64KB of data?
17. What is the difference between farand near?
18. When should a farpointer be used?
19. What is the stack?
20. What is the heap?
21. What happens if you free a pointer twice?
22. What is the difference between NULL and NUL?
Part 8: ِData structures: All programmers should know something about basic data structures like stacks, queues and heaps. Graphs are a tremendously useful concept, and two-three trees solve a lot of problems inherent in more basic binary trees.
============================================================================================
- What is a stack?
- Were do stacks come to play?
- What do these words mean? Push, Pop, Peek, LIFO, FILO
- What is queue data structure?
From here reference is : MIT on-line course
Part 9: OOP VS. procedural programming
============================================================================================
- What is OOP programming?
- What are the principals of OOP? encapsulation, polymorphism, inheritance and abstraction
- What is encapsulation? grouping related data and functions together as objects and defining an interface to those objects.If someone hands us a class, we do not need to know how it actually works to use it; all we need to know about is its public methods/data – its interface. This is often compared to operating a car: when you drive, you don’t care how the steering wheel makes the wheels turn; you just care that the interface the car presents (the steering wheel) allows you to accomplish your goal.
- What is polymorphism? allowing code to be reused between related types
- What is inheritance ? allowing a value to be one of several types, and determining at runtime which functions to call on it based on its type
- What is a class? A user-defined datatype which groups together related pieces of information
- What is field (member)? indicate what related pieces of information our datatype consists of
- What is instance? An instance is an occurrence of a class.Different instances can have their own set of values in their fields.
- How does copying an instance to other one work? Assigning one instance to another copies all fields
- How does passing a class to a function work?
- Passing by value passes a copy of the class instance to the function; changes aren’t preserved, and it will do nothing for us ,
- When a class instance is passed by reference, changes are reflected in the original
- What is method? functions which are part of a class
- What is a constructor? Method that is called when an instance is created class, since Manually initializing your fields can get tedious, there is no output type on it and a class can have multiple constructor
- Why make a copy constructor? Assigning all fields
(default copy constructor) may not be what you want. This is mostly because of pointers
- What are access modifiers? Define where your fields/methods can be accessed from, Public, Private and protected are three types of access modifiers. by default fields of classes are private
- What is the difference between a class and a struct? [My interview question a QualComm] Structs are a carry-over from the C; in C++, classes are generally used. In C++, they’re essentially the same as classes, except structs’ default access modifier is public.
- Can we have classes that accept inputs? If yes how? Yes, it is doable by defining constructor that accpets parameters, but we can’t put parameter definition at the class name definition
- What is a de-construxtor? A destructor is another special kind of class member function that is executed when an object of that class is destroyed. This all trouble come from POINTER side. Pointers inside a class or a class made as a pointer. Like constructors, destructors have specific naming rules:
1) The destructor must have the same name as the class, preceded by a tilde (~).
2) The destructor can not take arguments. which means only one destructor may exist per class, as there is no way to overload destructors since they can not be differentiated from each other based on arguments.
3) The destructor has no return type. - What is the “this” pointer? [HOW TO MAKE CHAINS OF FUNCTIONS]
- If you have a constructor (or member function) that has a parameter of the same name as a member variable, you can disambiguate them by using “this” BUT we find using the “m_” prefix on all member variable names provides a better solution by preventing duplicate names altogether!
- Occasionally it can be useful to have a function return the object it was working with. Returning *this will return a reference to the object that was implicitly passed to the function by C++. One use for this feature is that it allows a series of functions to be “chained” together, so that the output of one function becomes the input of another function! The following is somewhat more advanced and can be considered optional material at this point.
- What is private constructor and why should we make them? Occasionally, we do not want users outside of a class to use particular constructors.
- What is statistic member variable? and how does it work? put static in front of member variable declaration and make it shared between instances. Again, it will be cool application to generate ID numbers.
- What is the story of friend functions, and classes? For maintenance, we need to have smaller classes. When having several classes that work together they have to friends and share private member variables, and functions. Note 1: It doesn’t matter, where to define friendship in private or public part.
part 11: Overloading
============================================================================================
will be continued …. Ali
post no. 5
The first round interview will most likely consist of behavioural questions, a few technical/design questions and questions about your resume.
Don’t take behavioural questions easily. I got rejected from many high tech companies just at this level. I was super proud of myself. Answering proudly questions doesn’t work. They like to know theme of you. Can you work with them? Can they work with you?
Nowadays, there are lots of books out there for behavioural interviews. I strongly recommend you to buy or download them and start reading and practicing with friends, family or in front of mirror. I put a link from the best one that I found here: “A complete interview answer guide” by Don Georgevich
Everybody study them and if you dont. It’s your lack! Everybody memorize their questions and answers and If you dont. It’s your lack
Interview will vary greatly from interviewer to interviewer but I can almost guarantee you that you will be asked why you want to be a hardware engineer at Cisco. To me, this is a double question: Why do you want to be a hardware engineer? Why at Cisco? Then you will be asked what experience you have with being a hardware engineer.
Be prepared to answer these questions because they will come! DO NOT WING IT!!
Finally, the last question of the interview will be if you have any questions. Think of a list of 3-5 interesting questions to ask. I have a list of things/departments on my mind where I think Cisco is trailing the competition and a list of ideas that I want to discuss that could help.
Behavioural questions are your chance to show that you are passionate about your field and about Cisco as a company.
Let’s review some of them:
1-Can you work under pressure?
2-Do you work well under pressure?
3-What can you do for us that no one else can?
4-Tell me about yourself?
5-Why do you want to work here? What are the reasons you want to work here?
6-Why should I hire you?
7-What are your biggest accomplishments?
8-How do accept criticism?
9-What is the most difficult situation you have faced? Could you describe a difficult problem and how you dealt with it?
10-What are some of the things that bother you?
11-What do you consider your most significant strengths?
12-What do you consider your most significant weaknesses?
13-Do you prefer working with others or alone?
14-What are you willing to do to get what you want?
15-How do you get along with different types of people?
16-Give me an example of a project that didn’t work out well?
17-If you were a pickle, what kind of pickle would you be?
18-What do you feel your weaknesses are?
19-Would your boss describe you as a go-getter?
20-Are there any skills that you bring to the table that others in your field may not?
21-What are your salary requirements?
22-What would your past or present boss say about you?
23- What are your long term career goals? What would you like to be doing five years from now?
Ali;
Post no.4
I cannot stress this enough, you can never be too prepared for the interview. The first round interview is coming up very fast so you have a very limited amount of time to prepare; hence, use that time wisely. Here are some websites that you might want to check out:
The Cisco careers website. Know what you’re interviewing for and why
For the unaware, Cisco interview process (this may vary) consists of a first round 30-45 minute on campus interview. If you pass that, Cisco will fly you out (all expenses paid) to Kanata for a full day of interviewing.
To me, there are three steps to landing a job at Cisco for a college student:
- Impressing the college recruiter and getting the first round interview
- Passing the first round interview
- Passing the full day of interviews
I decided to put a little helper post together for people who are interviewing at Cisco, the first post will detail step 2: passing the first round interview.
Ali
post no.1
P.S.:Due to copy right laws, I don’t use Cisco logo trade mark . To find out Cisco logo please click on this cool link .











