github

Made bySaurav Hathi

TCS - Company Specific Mock Test - Programming - Set 5

Q1:

Which of the following operations cannot be performed on an array arr in C/C++?

I)  ++arr

II) arr+1

III) arr++

IV) arr*2

Tags:
c++
Qualcomm_NEAT_PROG
CAT2_MC4
MCA_MC2
+ 1 more
Section:
Core Programming
Options:
Q2:

From where break statement causes an exit?

Tags:
java
VVDN_NEAT_PROG
Section:
Core Programming
Options:
Q3:

Which of the following keyword convert an integer to hexadecimal string in python?

Tags:
InfyTQ_Python_MC2
Python
NEW_Q
Section:
Core Programming
Options:
Q4:

Which is true about an anonymous inner class?

Tags:
java
Section:
Core Programming
Options:
Q5:

Which interface provides the capability to store objects using a key-value pair?

Tags:
java
Section:
Core Programming
Options:
Q6:

Which of these functions is called to display the output of an applet ?

Tags:
java
Section:
Core Programming
Options:
Q7:

What is the value of x in this C code?

#include <stdio.h>

int main()

{

int x = 5 * 9 / 3 + 9;

printf("%d",x);

}

Tags:
c++
BOS2
Section:
Core Programming
Options:
Q8:

What is the output of this C code?

#include <stdio.h>

int main()

{

char *p = NULL;

char *q = 0;

if (p)

printf(" p ");

else

printf("nullp");

if (q)

printf("q\n");

else

printf(" nullq\n");

}

Tags:
c++
Section:
Core Programming
Options:
Q9:

What will be the output of below C program?

#include<stdio.h>
int main(){
	int a = 25, b;
	int *ptr, *ptr1;
	ptr = &a;
	ptr1 = &b;
	b = 36;
	printf("%d %d",*ptr, *ptr1);
	return 0;
}

 

Tags:
JIS_Faculty_2020
NEW_Q
Vuram_Technologies
Section:
Core Programming
Options: