About 2,610 results
Open links in new tab
  1. Which one of the following is the correct way of declaring and ...

    Jan 30, 2022 · Which one of the following is the correct way of declaring and initializing a variable, x with the value 7? +1 vote asked Jan 30, 2022 in Python by sharadyadav1986

  2. Java Questions and Answers

    Aug 10, 2022 · 53) How do you print Array in Java? (answer) You can print an array by using the Arrays.toString() and Arrays.deepToString() method. Since array doesn't implement toString() by itself, just passing an array to System.out.println() will not print its contents but Arrays.toString() will print each element.

  3. Which of the following syntax for defining an array is correct?

    asked Oct 24, 2020 in JAVA by sharadyadav1986. ... Which of the following syntax for defining an array is ...

  4. How can you initialize a 5*5 numpy array with only zeroes?

    Feb 10, 2021 · Solution -> We will be using the .zeros() meethod. Use np.zeros() and pass in the dimensions inside it. Since, we want a 5*5 matrix, we will pass (5,5) inside the .zeros() method.

  5. Multiple variables can be created and initialized in a single ...

    Feb 6, 2020 · Multiple variables can be created and initialized in a single JavaScript statement False True

  6. Is it possible to have negative index in an array in C Language?

    Mar 17, 2020 · Yes it is possible to index with negative value provided there are data stored in this location. Even if it is illegal to refer to the elements that are out of array bounds, the compiler

  7. What will be the output obtained by "shift ()" in the given code of ...

    Mar 22, 2021 · Reason: In JavaScript, the "unshift()"," shift()" methods work like just as push() and pop() but with a slight change, unlike the push and pop the unshift(), unshift() both insert and remove a data item from the beginning instead of from the end of the array. The "unshift()" is used for inserting the data element/item in the beginning of the ...

  8. What is the difference between Classes and Interfaces in …

    Jun 21, 2021 · Typically, a class defines what an object should look like and act like, and accordingly, it creates and implements a blueprint by initializing the class properties and defining methods. Classes are present throughout all the phases of a code. An interface, on the other hand, is a virtual structure that exists only within the context of TypeScript.

  9. Explain about the different lists available in the collection.

    May 24, 2019 · From the output, Array List maintains the insertion order and it accepts the duplicates. But not sorted. Vector: It is same as Array List. Vector methods are synchronized. Thread safety. It also implements the Random Access. Thread safety usually causes a performance hit.

  10. Which function is used over the margins of an array

    May 27, 2019 · Which function is used over the margins of an array. 0 votes . asked May 27, 2019 in Data Handling by ...

Refresh