Sign in to Publish article.

Sign in

VK

VikashKale

Programmer and Softwere Engineer at None Jan. 8, 2021, 7:55 p.m. ⋅ 328 views

Program Code - calculate the absolute difference between the sums of its diagonals.

Given a square matrix, calculate the absolute difference between the sums of its diagonals.

For example, the square matrix  is shown …


VK

VikashKale

Programmer and Softwere Engineer at None Updated Jan. 1, 2021, 6:24 p.m. ⋅ 257 views

TCS NQT/Digital coding program 2 - Write an program to count no of words, spaces, vowel and character.

Solution Code: -

sentence = input("Enter a sentence with few strings: ")
len_of_sentence = len(sentence)

vowel_list = ['a','e','i','o','u' …


VK

VikashKale

Programmer and Softwere Engineer at None Updated Jan. 1, 2021, 6:25 p.m. ⋅ 340 views

TCS NQT/Digital Coding Program- 1 The product of Quadruplet

*A non-empty arrary A consisting of numeric values is given.

The product of quadruplet (P,Q,R,S) equates to …


RK

rajan

Founder & Programmer at HackersFriend Dec. 19, 2020, 3:13 p.m. ⋅ 225 views

How to install Python libraries without using the pip command ?

To install any python library without pip command, we can download the package from pypi.org in and run it's …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 5 p.m. ⋅ 472 views

TCS NQT Technical Questions set 4

91. If a common property is referred by many objects of same class, then that property must be declared as …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 4:47 p.m. ⋅ 550 views

TCS NQT Technical Questions set 3

61. Recursion is executed in which order :

A. LIFO
B. FIFO
C. Random
D. All of the above

Ans. A …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 1:44 p.m. ⋅ 406 views

TCS NQT Technical Questions set 2

31. What is the best case and worst case complexity of binary search ?

A. O(log n), O(n)
B …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 1:22 p.m. ⋅ 504 views

TCS NQT Technical Questions set 1

1. In C, if you pass an array as an argument to a function, what actually gets passed?

A. Value …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 12:56 p.m. ⋅ 483 views

TCS NQT aptitude questions set 8

Q131. Two pipes can fill the cistern in 10 hr and 20 hr respectively, while the third empty it in …


DG

dhirendra_gupta

Student at BIT Mesra Oct. 12, 2020, 12:45 p.m. ⋅ 472 views

TCS NQT aptitude questions set 7

Q101. Find out the largest number that divides 245 & 1029 leaving remainder 5.

a) 6

b) 14

c) 8 …



View more

HackersFriend Updates





View more


Events


Nov. 28, 2018, 5:30 p.m.

Python from zero to hero

place Delhi

View details


Aug. 13, 2018, 5:30 p.m.

Python from zero to hero

place Bangalore ( HackersFriend office BTM Layout)

View details