Arjun Thakur has Published 1025 Articles

Where do we use scope Resolution Operator (::) in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:18:56

769 Views

In C++ the scope resolution operator i.e. :: is used for global variables, whereas in C# it is related to namespaces.If you have a type that share an identifier in different namespace, then to identify them use the scope resolution operator.For example, to reference System.Console class, use the global namespace ... Read More

What is the Count property of Hashtable class in C#?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 11:05:04

132 Views

To find the count of elements of Hashtable class, use the Count property. Firstly, set the Hashtable class with elements −Hashtable ht = new Hashtable(); ht.Add("One", "Tom"); ht.Add("Two", "Jack"); ht.Add("Three", "Peter"); ht.Add("Four", "Russel"); ht.Add("Five", "Brad"); ht.Add("Six", "Bradley"); ht.Add("Seven", "Steve"); ht.Add("Eight", "David");Now, count the number of elements using the Count ... Read More

How does MySQL QUOTE() function work with comparison values?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 10:42:27

138 Views

When QUOTE() function used with WHERE clause then the output depends upon the comparison values returned by WHERE clause. Following example will exhibit it −Examplemysql> Select Name, ID, QUOTE(Subject)AS Subject from Student WHERE Subject = 'History'; +-------+------+-----------+ | Name  | ID   | Subject   | +-------+------+-----------+ | Aarav ... Read More

In what cases, we cannot use MySQL TRIM() function?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 10:35:51

567 Views

Actually for using MySQL TRIM() function we must have to know the string which we want to trim from the original string. This becomes the major drawback of TRIM() in the cases where we want to trim the strings having different values. For example, suppose we want to get the ... Read More

In MySQL, how FIELD() function is different from FIND_IN_SET() function?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 08:49:28

1K+ Views

As we know, both the functions are used to search a string from the arguments provided in them but there are some significant differences between them as follows −FIND_IN_SET() −  function uses the string list that is itself a string containing the substring separated by commas. Whereas, FIELD() function contains ... Read More

What MySQL ASCII() function returns if no parameter is provided to it?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 07:38:56

195 Views

In this case, it means we are providing an empty string as an argument to the ASCII() function. It will return 0 on providing empty string.Examplemysql> Select ASCII(''); +-----------+ | ASCII('') | +-----------+ |     0     | +-----------+ 1 row in set (0.00 sec)

How can we apply filtering criteria at group levels of the result set returned by MySQL?

Arjun Thakur

Arjun Thakur

Updated on 20-Jun-2020 06:39:36

135 Views

As we know that GROUP BY clause in a SELECT statement can divide the result set, returned by MySQL, in groups. Now if we want to return only some specific groups then need to apply filtering criteria at the group level. It can be done by using HAVING clause inside ... Read More

Reserved keywords in C++?

Arjun Thakur

Arjun Thakur

Updated on 19-Jun-2020 05:31:50

10K+ Views

A reserved word is a word that cannot be used as an identifier, such as the name of a variable, function, or label – it is "reserved from use". This is a syntactic definition, and a reserved word may have no meaning.There are a total of 95 reserved words in ... Read More

Who’s Who in the Internet Standards World

Arjun Thakur

Arjun Thakur

Updated on 18-Jun-2020 07:01:44

3K+ Views

Internet Standards refer to all the documented requirements both in technology as well as methodology pertaining to the Internet. The standardization process has three steps. The documentation laid down in a step is called the maturity level. There were previously three maturity levels but are merged to form only two ... Read More

How to handle exception inside a Python for loop?

Arjun Thakur

Arjun Thakur

Updated on 17-Jun-2020 12:20:33

3K+ Views

You can handle exception inside a Python for loop just like you would in a normal code block. This doesn't cause any issues. For example, for i in range(5):    try:       if i % 2 == 0:          raise ValueError("some error")       ... Read More

Advertisements