Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Daniel Cameron

Daniel Cameron

Community Learner
Share
91Questions
87Answers
123.7KViews on questions

How can I handle variable arguments by using ##_va_args_

For achieving the goal of handling a variable number of arguments in a function In C or C++ by using the ##_va_args_, you should define the function by using the variable argument 'va_list’. Begin with the initialization of the list with 'va_start’ and extract the arguments by using 'va_arg’. Do not forget to handle…

Java

Answered Nov 23, 2023 · 644 Views Read answer →

What are the methods used in Python to work string?

In the context of the Python certification program you will need to do Python substring and extraction. There are various various methods available for doing these. For instance one of the examples is called a string slice. In the string slice, you can specify the start and end indices to get the required substring.…

Python

Answered Nov 23, 2023 · 703 Views Read answer →

What is the difference between string and stringbuffer in Java?

In the context of Java learning online you were taught that the difference between string and stringbuffer in Java is that both are used for manipulation of the strings, however, there are various minute differences between them. Here are the differences following:- In the context of Java programming the values of the…

Java

Answered Nov 17, 2023 · 771 Views Read answer →

Why is Python raise exception used?

Python certification program is a quality-based online course program regarding Python programming. However, we can provide a specific answer for your specific doubt. Here is the answer to your doubt following:- Python raise exception is mainly used for error signaling. When the condition indicates an error, it can…

Python

Answered Nov 14, 2023 · 828 Views Read answer →

What is the importance of the include iostream in C++ programming?

The Include iostream stands for “Input-output stream”. It is a type of command in C++ that adds the input-output stream library into a C++ program. It enables us to input and output through 'cin’ and 'cout’. Where 'can' provides a facility to input so that it can receive the input data from the user when he or she…

Java

Answered Nov 2, 2023 · 1.2K Views Read answer →

What exactly is the function of random seed in python

Pseudo-random number generators work by performing some operation on a value. Generally this value is the previous number generated by the generator. However, the first time you use the generator, there is no previous value. Seeding a pseudo-random number generator gives it its first "previous" value. Each seed value…

Python

Answered Jul 13, 2021 · 1.1K Views Read answer →

How do you rename a MongoDB database?

For renaming a MongoDB database you can use the following way:- db.copyDatabase("db_to_rename","db_renamed","localhost") use db_to_rename db.dropDatabase();Or To Rename a MongoDB Database Copy the original database by copying all the collections, views, and buckets in it. Create a new database. Name the new database…

Python

Answered Jul 12, 2021 · 4.1K Views Read answer →

Git merge with force overwrite -git force merge

For force merge git you can try these commands: git fetch origin # update all our origin/* remote-tracking branches git checkout demo git merge -s ours branch git checkout master git merge -s ours origin/master git merge -s ours branch git push origin masterThese commands will help to overwrite the demo branch.

Data Science

Answered Jul 12, 2021 · 9.2K Views Read answer →

ImportError: No module named 'django.core.urlresolvers'

Django 2.0 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use django.urls instead, like this: from django.urls import reverse Note that Django 2.0 removes some features that previously were in django.core.urlresolvers, so you might have to…

Python

Answered Jun 16, 2021 · 1.4K Views Read answer →

More members from the DevOps community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.