Ericsson Interview Questions and Answers for 1 years Experience
Home > Experience Archives > Ericsson > Interview Question Set 2
Accenture
Adobe
Alcatel-Lucent
Alten Calsoft Lab
Amazon
Amdocs
Aricent
Arris
Broadcom Ltd
Brocade
CA Technologies
Capgemini
Cavium Networks
CenturyLink
Ciena
Cisco
Citrix
Cognizant
Comcast
CSC (DXC Technology)
Dell EMC
Deloitte
EFI
Ericsson
Extreme Network
Genpact
Gigamon
Global Edge
GlobalLogic
Goldman Sachs
Happiest Minds
HCL Technologies
Hewlett Packard Enterprise
IDS Infotech
Incedo
Infinite C S
IpInfusion
J.P. Morgan
Juniper Network
L&T Technology Services
MindTree
MosChip Semiconductor
NEC Technologies
NIIT Technologies
OLA
One Access
PayPal
Paytm
Qualcomm
Radisys
Redeem Software
Reliance Jio
Rolta India Limited
Samsung
Sasken
Siemens
Synopsys
Tavant Technologies
TCS
Tech Mahindra
Viasat
Wipro
XiLinx
C (37)
C++ (0)
DBMS (1)
Soft. Engineering (0)
Python (0)
Finite Automata (0)
SQL (55)
Java (24)
.NET (0)
WebMethod (0)
EDI (0)
Informatica (0)
Oracle Apps HRMS (0)
Operating System (17)
Data Structure (19)
PHP (0)
Unica (8)
Oracle Apex (7)
HR Question in TR (32)
Networking (56)
Hadoop (0)
HTML (0)
Oracle PLSQL (0)
DPDK (Data Plane Development Kit) (1)
Programming Qs. in TR (0)
First Round (F-2-F)
Second Round (F-2-F)
1 / 10
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
2 / 10
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
3 / 10
|
|
|
Answer:
#include
int main()
{
int tmp=1;
if(*(char*)&tmp == 1)
printf("\n system is little endian \n");
else
printf("\n sytem is big endian \n");
return 0;
}
#include
int main()
{
int tmp=1;
if(*(char*)&tmp == 1)
printf("\n system is little endian \n");
else
printf("\n sytem is big endian \n");
return 0;
}
Please Login First :
Tags:
No Tags on this question yet!
4 / 10
|
|
|
Answer:
#define htons(A) ((((unit16_t)(A) & 0xff00) >> 8) | (((unit16_t)(A) & 0xff00) << 8))
#define htonl(A) ((((unit32_t)(A) & 0xff000000) >> 24) | (((unit32_t)(A) & 0x00ff0000) >> 8) | (((unit32_t)(A) & 0x0000ff00) << 8) | (((unit32_t)(A) & 0x000000ff) << 24))
---------- or
convertBigtoLittle (int num)
{
int b0,b1,b2,b3;
b0 = (num & 0x000000ff) >> 0;
b1 = (num & 0x0000ff00) >> 8;
b2 = (num & 0x00ff0000) >> 16;
b3 = (num & 0xff000000) >> 24;
return ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0))
}
#define htons(A) ((((unit16_t)(A) & 0xff00) >> 8) | (((unit16_t)(A) & 0xff00) << 8))
#define htonl(A) ((((unit32_t)(A) & 0xff000000) >> 24) | (((unit32_t)(A) & 0x00ff0000) >> 8) | (((unit32_t)(A) & 0x0000ff00) << 8) | (((unit32_t)(A) & 0x000000ff) << 24))
---------- or
convertBigtoLittle (int num)
{
int b0,b1,b2,b3;
b0 = (num & 0x000000ff) >> 0;
b1 = (num & 0x0000ff00) >> 8;
b2 = (num & 0x00ff0000) >> 16;
b3 = (num & 0xff000000) >> 24;
return ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0))
}
Please Login First :
Tags:
No Tags on this question yet!
5 / 10
|
|
|
Answer:
storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the type that they modify. We have four different storage classes in a C program:
# auto
# register
# static
# extern
storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the type that they modify. We have four different storage classes in a C program:
# auto
# register
# static
# extern
Please Login First :
Tags:
No Tags on this question yet!
6 / 10
|
|
|
Answer:
functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
Please Login First :
Tags:
No Tags on this question yet!
7 / 10
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
8 / 10
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
9 / 10
|
|
|
Answer:
When memory allocation is done, the actual heap space allocated is one word larger than the requested memory. The extra word is used to store the size of the allocation and is later used by free( )
When memory allocation is done, the actual heap space allocated is one word larger than the requested memory. The extra word is used to store the size of the allocation and is later used by free( )
Please Login First :
Tags:
No Tags on this question yet!
10 / 10
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
1 / 6
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
2 / 6
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
3 / 6
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
4 / 6
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
5 / 6
|
|
|
Answer:
No Discussion on this question yet!
No Discussion on this question yet!
Please Login First :
Tags:
No Tags on this question yet!
6 / 6
void (*func) (int)
int *(*func)[10] (int)
int *(*func[10]) (int *)
|
|
|
Answer:
void (*func) (int) => "func" is a pointer to function with argument as int and return void
int *(*func)[10] (int) => func is a pointer to function with argument as int and returning as array of pointer.
int *(*func[10]) (int *) => "func" is a array 10 of function pointer with argument as int pointer and return pointer to int.
void (*func) (int) => "func" is a pointer to function with argument as int and return void
int *(*func)[10] (int) => func is a pointer to function with argument as int and returning as array of pointer.
int *(*func[10]) (int *) => "func" is a array 10 of function pointer with argument as int pointer and return pointer to int.
Please Login First :
Tags:
No Tags on this question yet!