Showing posts with label Memory models. Show all posts
Showing posts with label Memory models. Show all posts

Memory techniques for Interview Questions

Memory techniques for Interview Questions

Interviewing for a job can tax your memory. You must remember the names of your interviewers, their titles and details about the company, plus all the specifics of your own work history. Even finding the interview location taxes your short-term memory. At the same time, being nervous causes many people to forget details. A great help to your interview preparation is to boost your memory before the interview so that you can arrive confident and fully focused.

1. When researching the company, break it down into several study sessions spaced apart rather than try to learn it in a single sitting. Never cram the night before unless this is a spur-of-the-moment interview.

2. Paying attention plays a big role in information recall, as you may recall from your experiences daydreaming during high school chemistry class. Study the company in a quiet environment that’s free of distractions.

3. Pay attention to what is said during the interview. Many candidates focus so intently on what they are going to say next that they miss key pieces of information that the interviewer is giving.

4. Repeating information helps you to retain it. If you are in a panel group interview, with more than one interviewer, there are sure to be names that are new to you. Say, “Nice to meet you, Mr. Hanson,” and you’ll remember his name later.

5. Organize pieces of information into groups. Educational psychologists call this process “chunking.” The reason it helps boost your memory is simple. It’s easier to remember five groups with five items in each one than it is to remember 25 separate items. Draw a big-picture organizational chart that includes divisions and subsidiaries of the company. Then plug in the people and departments that you would be working with if you had the job. Go through the same process with the company’s products and markets, organizing each one into categories.

6. Use mnemonic devices. Association and visualization are especially effective devices to boost your memory in situations in which there’s no time for complicated strategies. Simply associate something you’re trying to remember with something else, and then visualize it. For example, if an interviewer’s name is Jim Newberger, picture your college roommate Jim eating a new burger. If you can, associate a physical feature to remember the face as well. Perhaps Jim Newberger has a full head of black hair like your college roommate. Afterwards, jot down the name as soon as possible.

7. If you have a longer time to learn information, acronyms and acrostics work well. For example, if the division in which you’re interested makes coatings, adhesives, special polymers and inks, take the first letter of each word to form the acronym CASPI. You can even visualize a friendly ghost. An acrostic using the first letter of each word might be “Cats Always Smell Pretty Interesting.”

8. Try the loci technique to boost your memory. In this method, you imagine the things you are trying to remember as objects in a familiar place. Let’s say that you want to remember the company’s satellite offices in Troy, Lansing, Grand Rapids and Ann Arbor. You might picture Helen of Troy sitting on your living room sofa, a lance mounted on the wall of your dining room, grand rapids spilling from an overflowing kitchen sink and your cousin Ann sitting under an arbor in your back yard.

9. Keep all belongings related to the interview super-organized. This will free up your memory for more important tasks in the same way that cleaning up your computer’s hard drive frees up more memory. Rummaging through a disorganized briefcase to find a pen—or, worse, asking the interviewer for one—could kill your chances of landing the job. The interviewer will think, “If this candidate can’t even find a pen, what’s a business trip going to be like?”

Keep a few pens tucked inside your jacket pocket or in an outside pocket of your purse. Store relevant phone numbers on your computer and phone rather than on scraps of paper.

10. Practicing for the interview is one of the best ways to commit something to memory. If possible, do a practice drive to the place of the interview and use a GPS if you have one. Think of this as the equivalent of taking a practice test in school. If you get lost and arrive late, you can probably forget about getting the job even if your qualifications are top-notch.

11. Also, at least practice the 10 common interview questions and answers with someone else. Practice our list of top 10 interview trick questions and rehearse how you will handle them. Even if the interviewer surprises you with a different question, chances are that you’ve already rehearsed your response to a similar type of query.

Memory models used by C Compiler

The compiler uses a memory model to determine how much memory is allocated to the program. The PC divides memory into blocks called segments of size 64 KB. Usually, program uses one segment for code and a second segment for data. A memory model defines the number of segments the compiler can use for each. It is important to know which memory model can be used for a program. If we use wrong memory model, the program might not have enough memory to execute. The problem can be solved using larger memory model. However, larger the memory model, slower is your program execution. So we must choose the smallest memory model that satisfies our program needs. Most of the compilers support memory models like tiny, small, medium, compact, large and huge

c faqs question and answers

C faqs question and answers

C interview question1:How do I write code that executes certain function only at program termination?
Answer: Use atexit( ) function as shown in following program.
#include
main( )
{
int ch ;
void fun ( void ) ;
atexit ( fun ) ;
// code
}
void fun( void )
{
printf ( "\nTerminate program......" ) ;
getch( ) ;
}
C interview question2:What are memory models?
Answer: The compiler uses a memory model to determine how much memory is allocated to the program. The PC divides memory into blocks called segments of size 64 KB. Usually, program uses one segment for code and a second segment for data. A memory model defines the number of segments the compiler can use for each. It is important to know which memory model can be used for a program. If we use wrong memory model, the program might not have enough memory to execute. The problem can be solved using larger memory model. However, larger the memory model, slower is your program execution. So we must choose the smallest memory model that satisfies our program needs. Most of the compilers support memory models like tiny, small, medium, compact, large and huge.
C interview question3:How does C compiler store elements in a multi-dimensional array?
Answer:The compiler maps multi-dimensional arrays in two ways—Row major order and Column order. When the compiler places elements in columns of an array first then it is called column-major order. When the compiler places elements in rows of an array first then it is called row-major order. C compilers store multidimensional arrays in row-major order. For example, if there is a multi-dimensional array a[2][3], then according row-major order, the elements would get stored in memory following order:
a[0][0], a[0][1], a[0][2], a[1][0], a[1][1], a[1][2]
C interview question4:If the result of an _expression has to be stored to one of two variables, depending on a condition, can we use conditional operators as shown below?
( ( i < 10 ) ? j : k ) = l * 2 + p ;
Answer: No! The above statement is invalid. We cannot use the conditional operators in this fashion. The conditional operators like most operators, yields a value, and we cannot assign the value of an _expression to a value. However, we can use conditional operators as shown in following code snippet.
main( )
{
int i, j, k, l ;
i = 5 ; j = 10 ; k = 12, l = 1 ;
* ( ( i < 10 ) ? &j : &k ) = l * 2 + 14 ;
printf ( "i = %d j = %d k = %d l = %d", i, j, k, l ) ;
}
The output of the above program would be as given below:
i = 5 j = 16 k = 12 l = 1
C interview question5:How can I find the day of the week of a given date?
Answer: The following code snippet shows how to get the day of week from the given date. 
dayofweek ( int yy, int mm, int dd )
{
/*Monday = 1 and Sunday = 0 */
/* month number >= 1 and <= 12, yy > 1752 or so */
static int arr[ ] = { 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 } ;
yy = yy - mm < 3 ;
return ( yy + yy / 4 - yy / 100 + yy / 400 + arr[ mm - 1] + dd ) % 7 ;
}
void main( )
{
printf ( "\n\n\nDay of week : %d ", dayofweek ( 2002, 5, 18 ) ) ;
}
C interview question6: What's the difference between these two declarations?
struct str1 { ... } ;
typedef struct { ... } str2 ;
Answer : The first form declares a structure tag whereas the second declares a typedef. The main difference is that the second declaration is of a slightly more abstract type -- its users don't necessarily know that it is a structure, and the keyword struct is not used when declaring instances of it.
C interview question7: How do I print the contents of environment variables?
Answer: The following program shows how to achieve this:
main( int argc, char *argv[ ], char *env[ ] )
{
int i = 0 ;
clrscr( ) ;
while ( env[ i ] )
printf ( "\n%s", env[ i++ ] ) ;
}
main( ) has the third command line argument env, which is an array of pointers to the strings. Each pointer points to an environment variable from the list of environment variables.
keywords:
memory models in embedded c
data memory in microcontroller
memory models in c
ram in embedded system
composing memory in embedded system
memory mapping in 8051
external memory in embedded system
memory organization of 8051
data in embedded c
program termination in c
how to end a program in c
exit(0) in c
c exit codes
exit() function in c example
how to exit c program output screen
exit(-1) in c
c quit
explain exit statement in c with example
multi dimensional array in c
two dimensional array in c definition
three dimensional array in c
two dimensional array in c++
two dimensional array in c using pointers
two dimensional array in c pdf
two dimensional string array in c
sum of elements in 2d array in c
if statement
logical operators
if statement python
boolean expression
conditional statement
if statement logic
if else statement
python if greater than or equal to
conditional operator c#
conditional operator java
conditional operator javascript
conditional operator c++
conditional operator in c
list operators used in if conditional statement in python
ternary operator
list operators used in if conditional statement in java
conditional operator in python