LTE architecture : The LTE architecture mainly consist following nodes and interfaces. Nodes: UE – User equipment E-UTRAN (eNodeB) –
Category: Interview Question
Q27 Write a C program to round numbers.
Use this statement to round numbers (int)(number < 0 ? (number – 0.5) : (number + 0.5))
what is LTE?
LTE stands for Long Term Evolution and is a registered trademark owned by ETSI (European Telecommunications Standards Institute) for the wireless data communications
Q26 Write a C program to check leap year.
#include<stdio.h> int main() { int year; printf(“Enter any year to check leap year\n”); scanf(“%d”,&year); if((year %
Q25 Write a C program to find duplicate integer in an array.
#include<stdio.h> int main() { int i, j, temp, arr[10]; printf(“Enter the number with some repeated number\n”); for(i
Q24 Write a C program to convert from decimal to binary, octal, or hex number system.
#include<stdio.h> void decimal_to_any_base(int number, int base) { int i, x, digits[1000], flag; i = 0; while(number)
Q23 Write a C program which produces its own source code as its output.
#include<stdio.h> int main() { FILE *fptr; char chr; fptr = fopen(__FILE__,”r”); do{ chr= getc(fptr); putchar(chr); } while(chr!=EOF); fclose(fptr); return 0;
Q22 How to add sum the digits of a given number in single statement?
Twisted question from interviewer, but not difficult. for(; num > 0; sum += num%10, num /= 10); printf(“Sum = %d\n”,sum);
Core Java:Constructor interview question
What is Constructor? A constructor is a special method that is used to initialize an object of the class. It
Q21 Write your own program to implement the atoi() function.
What atoi() function does? atoi() function is used to convert a string to an integer #include int own_atoi(const char *str)
Q20 Write your own function of memset().
memset() function is used to initialize a block of memory to a specified value. User defined function of memset(). #include<stdio.h> #include<string.h>
Q19 Write your own function of memcmp().
memcmp() function is used to perform byte by byte comparison. Given below user defined memecmp() function. #include<stdio.h> #include<string.h> #include<stdlib.h> int
Q18 Write your own function of memmove().
User defined function of memmove(). #include<stdio.h> #include<string.h> #include<stdlib.h> void own_memmove(void *to, const void *from, int n) { unsigned char
Core Java:Interface interview question
1.What is an Interface? In its most common form, an interface is a group of related methods with empty bodies.