Sign Up

Continue with Facebook
Continue with Google
or use

Have an account? Sign In Now

Sign In

Continue with Facebook
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Ansfind

Ansfind Logo Ansfind Logo Ansfind Logo Ansfind Logo
Add question

Ansfind Navigation

  • About Us
  • Groups
    • Add group
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Tags
  • Points
  • Users
  • FAQs
  • Help
  • Contact Us
SaRa
SaRaProfessor
Asked: June 23, 20222022-06-23T13:58:46+05:30 2022-06-23T13:58:46+05:30In: MCQ

What arithmetic operators cannot be used with strings?

A) *

B) –

C) +

D) All of the above

c++programming mcqstrings mcq
  • 3
  • 11
  • 3
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
Answer

    Related Questions

    • What are copy constructors in C++?
    • What is the difference between Shallow copy and Deep copy?
    • Why Every programmer should learn C++ during their careers?

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. CFB
      2022-06-23T14:21:38+05:30Added an answer on June 23, 2022 at 2:21 pm

      Answer: B) – (substraction)

      Explanation: The most common arithmetic operations are addition (+), multiplication (*), subtraction (-), and division (/). Arithmetic operators are used to carrying out these operations. We can use these operators with any numerical values to perform calculations.

      But in Programming, we are not able to utilize all of these operators with strings. Only a few mathematical operators can be used on a string, such as the addition symbol to join two strings together.

      example: a+bc=abc like this we can do string multiplication using the multiplication symbol(*). Hence only two arithmetic operations (+ & *) are used with strings.

      subtraction(-), division(/), Floor division (//), exponent(**),  and modulus(%) operators are not use with strings.

      Hence, the option is the correct answer to the above question.

      I hope, This answer will help you!

       

       

       

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Choose from here the video type.

    Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

    Sidebar

    Top Users

    Weboptify

    Weboptify

    • 3,290 Points
    Wish Lay

    Wish Lay

    • 2,347 Points
    Manu Murthy

    Manu Murthy

    • 1,635 Points

    Adv 250x250

    • About Us
    • Home
    • Communities
    • Polls
    • Tags
    • Points
    • Users
    • Help
    • Contact Us
    • Referrals
    • Policies
      • Privacy policy
      • Terms of use
    Revenue

    © 2022 Ansfind. | Designed by Weboptify

    monetization_on category home emoji_events
    search
    help

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.