aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Software Engineering
  • Calculate the vocabulary for the following code: int f=1,...
Multiple choice

Calculate the vocabulary for the following code: int f=1,n=7; for(int i=1; i<=n; i+=i)f*=i;

  1. 11

  2. 15

  3. 10

  4. 05

  5. 11

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Vocabulary is the sum of total number of unique operators and unique operands. unique operators=10('int',',','=',';','for','(','<=','+=',')','*=')unique operands=5(f,1,n,7,i)vocabulary=10+5=15

Keep practicing — related questions

  • Identify the statements that are correct: (A) int a = 13, a>>2 = 3 (B) int b = -8, b>>1 = -4 (C) int a = 13...
  • Following data shows the sale of shirts in a shop for the past 3 weeks. 5, 2, 3, 2, 4, 8, 7, 9, 12, 10, 3, ...
  • \text{What approximate value should come at place of question mark (?) in the following questions?}\\\(\fra...
  • Directions: Solve the following question and mark the best possible option. Bottle 1 contains a mixture of ...
  • The sum of the first n terms of the series $$1⁄2 + 3⁄4 + 7⁄8 + 15⁄16 + …$$ is equal to
  • What approximate value should come at place of question mark (?) in the following questions? $23% of 4011 +...
  • What approximate value will come in place of question mark (?) in the following questions?\(\frac{1}{7} \ti...
  • Direction: The following question has two statements, (1) and (2). Answer the question using the following ...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy