I> Verbal Ability Section
II> Apptitude Question - 20 Questions - 40 Mins
III> Coding Question - 1
Question - What is the output of below simple code?
enum xyz {R,G = 11,B}
void main(){
printf("%d %d %d", R,G,B);
}
Options -
1. 0 11 12
2. 10 11 12
3. 0 11 0
4. Compilation Error
Question - What is the maximum value of a signed data type that is 8 bits in a size?
Options -
1.2^8 -1
2.2^8
3.2^7 -1
4.2^7
Question - Which one of the following declare a variable that can be used in a whole program?
Options -
1.static int x;
2. extern int x;
3. auto int x;
4. int main(int argc, char * argvc[]){
int x;
/* rest of the main functions */
}
Question - What is the output -
void main(){
char s1[15] = "test";
char s2[4] = "new";
char s3[4] = "few";
strcpy(strcat(s1+s2), strcat(s3+ s2))
printf("%s", s1);
}
Options -
1.few test
2. test new
3.few new
4.test few
Question - When arrays name is passed to a function, What actually gets passed is
Options -
1. All Array elements
2.First element of the array
3. Addresss of the array
4.None of the given options
Question - What is the output -
#INCLUDE
void main(){
char *a[10] = {"hi","hello","welcome"};
int i =0;
for(i =0; i<10;i++){
printf("%s",a[i])
}
Advanced Programming
Question - Given two strings a and b consisting of lowercase characters. The task is to check wherether two
given string are anagram or not.
Round 2:
About yourself? About your projects?, Your favourite subject? Your favourite language?
OOPS , DBMS, Networks
Recent trends - Blockchain, IoT,AI,ML,DL Bigdata
Previous year digital question paper -
No comments:
Post a Comment