Logo Rumman Ansari
  • Home
  • Blog
  • Appointment
  • Courses
    Paid Courses
    • X++ Programming Language
    • D365 F&O Technical Using X++ Programming Language
    • Java Programming Language
    • Python Programming Language
    • Java Fundamentals: Building Strong Foundations
    • C Programming Language for Problem Solving
    • D365 F&O X++ Programming Language Interview Questions & MCQs
    • MB-330: Microsoft Certified: Dynamics 365 Supply Chain Management Functional Consultant Associate
    • C Programming Language Video Bangla
    • ICSE Computer Applications Class 10 – Previous Year Question Papers & Solutions
    • GH-300: GitHub Copilot
    • AB-730: Microsoft Certified: AI Business Professional
    • Interview Mastery: The Complete Guide for Candidates and Interviewers
    • Complete Data Structures Mastery Course: Beginner to Advanced with Real-World Examples
    • ISC COMPUTER SCIENCE Class XI
    • Computer Awareness & Fundamentals: Complete Guide
    • MB-310: Microsoft Certified: Dynamics 365 Finance Functional Consultant Associate
    • MB-920: Microsoft Dynamics 365 Fundamentals (ERP)
    • Authentication
    • Leadership Behavior, Culture, and Communication for Team Leads
    • MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer
    • Programming Language
    • Artificial intelligence
    • JavaScript
    • Complete MySQL Database Mastery Course: Beginner to Advanced with Real-World Projects
    • UGC NET, SET
    • HTML5 Fundamentals: Build Websites from Scratch
    • Prompt Engineering
    • TypeScript - JavaScript's Superset
    • ডিজিটাল উৎপাদনশীলতা এবং কম্পিউটার সচেতনতা - Digital Productivity & Computer Awareness
    • Mastering HTML: From Fundamentals to Advanced Concepts
    • Mastering JavaScript: From Fundamentals to Advanced Concepts
    • IT Career Mastery Blueprint
    • Art of Delegation
    • Computer Science - 10 Years Solved Papers ISC Class XII
    • The Practical Tech Creator Blueprint
    • Microsoft Power Platform Mastery (Power BI + Power Apps + Power Automate + Copilot + Dataverse)
    • MB-700: Microsoft Dynamics 365: Finance and Operations Apps Solution Architect
    • Leadership Communication for Agile and IT Delivery Teams
    • ICSE Class 8 Computer Studies (Latest CISCE Syllabus)
    • Scrum Master Complete Bootcamp: From Beginner to Professional
    Free Courses
    • AB-100: Agentic AI Business Solutions Architect
    • AJAX - Asynchronous JavaScript and XML
    • AngularJS - JavaScript framework
    • Arithmetic Aptitude
    • Automata Theory
    • AZ-400: Designing and Implementing Microsoft DevOps Solutions
    • Azure DevOps for Beginners
    • Bangla to English
    • Biography
    • Biology
    • Bootstrap 4
    • C# Programming Language
    • C++ language
    • Competitive Exam
    • Computer Awareness
    • Computer Network
    • Computer Science and Engineering
    • Continuous Deployment
    • Continuous Integration
    • CSS
    • Current Affairs
    • Database Management System
    • Digital Logic
    • Electrical Engineering
    • English
    • English Grammar
    • General Aptitude
    • Geography
    • Geography of Pakistan
    • History
    • Important Days and Dates
    • Know Islam
    • Logical Fallacy
    • Machine Learning
    • Mathematics
    • Mathematics for Programming
    • Mathematics in Bangla - Class 5
    • Microservices Architecture
    • Microsoft Azure
    • Microsoft Excel - Bangla
    • Mindwork games
    • Miscellaneous Topics
    • Misconceptions about Islam
    • Neural Networks and Deep Learning
    • NPM - Package Manager
    • Photoshop
    • PHP
    • Puzzles
    • R Programming Language
    • ReactJS
    • Science
    • Social Science
    • SQL
    • SQLite
    • System Design
    • Tamil Nadu State board (Class 10)
    • Technical MCQs
    • Technical Short Answers
    • User Experience
    • Verbal and Reasoning
    • Vue JS
    • অতীত ও ঐতিহ্য: অষ্টম শ্রেণীর: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • অর্থনীতি
    • আরবী ভাষা কোর্স - Diploma in Arabic language
    • ইতিহাস
    • ইতিহাস ও পরিবেশ: দশম শ্রেণি: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • ইসলামিক বই
    • ইসলামে আকীকা
    • ইসলামে নারী
    • এসো আরবী শিখি
    • কুরআন
    • খাদ্য, পুষ্টি ও খাদ্যের উপাদান
    • জীবনবিজ্ঞান ও পরিবেশ (দশম)
    • তাহারাত কুইজ প্রতিযোগিতা
    • নবীদের কাহিনী - The story of the prophets
    • পরিবেশ ও বিজ্ঞান
    • পশ্চিমবঙ্গ গ্রাম পঞ্চায়েত সম্পূর্ণ প্রস্তুতি কোর্স - WB Gram Panchayat Exam Complete Preparation Course
    • পশ্চিমবঙ্গ মধ্যশিক্ষা / উচ্চ মাধ্যমিক শিক্ষা সংসদ: বই PDF
    • প্যারেন্টিং - Parenting
    • প্রচলিত ভুল বিষয়ে প্রতিযোগিতা টেস্ট কুইজ
    • প্রশ্নোত্তরে ইসলামী জ্ঞান
    • বাংলা ইসলামিক কুইজ - Bangla Islamic Quiz
    • বাংলা সাহিত্য
    • ব্যক্তিগত উন্নয়ন (Personal Development)
    • ভূগোল
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন ও কম্পিউটার বিজ্ঞান - একাদশ শ্রেণী (Class 11) - WBCHSE
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন ও কম্পিউটার বিজ্ঞান - দ্বাদশ শ্রেণী (Class 12) - WBCHSE
    • লেখক এবং কবি
    • শয়তান পরিচিতি
    • শিক্ষা - Education
    • সংক্ষিপ্ত জীবনী
    • সাধারণ জ্ঞান
    • সাহাবীদের জীবনী
    • সীরাত প্রতিযোগিতার প্রশ্ন ও উত্তরসমূহ
  • Login
    • Login with Email
Home› Java Programming Language› ICSE Computer Application - Class - X› What will be the output of the following program segme…
✏️ Explanatory Question

What will be the output of the following program segment?

int ar[] = {1, 2, 3, 4, 5};
int a = 1;

for (int i = 0; i < 7; i++) { 
    a = a + i * ar[i];
}

System.out.println(a);

👁 116 Views
📘 Detailed Answer
🟢 Easy
← Previous Convert the following segment into an equivalent do- while loop. int a, b; for (a = 10, b = 20; b >= 10; b = b - 2) { a++; } Next → What will be the output of the following program segment? int a[] = {1, 2, 3, 4, 5, 6, 7, 9, 13, 16}; x = Math.pow(a[4], a[2]); y = Math.sqrt(a[6] + a[7]);
💡

Answer with Explanation

Answer not available right now.

← Previous Convert the following segment into an equivalent do- while loop. int a, b; for (a = 10, b = 20; b >= 10; b = b - 2) { a++; } Next → What will be the output of the following program segment? int a[] = {1, 2, 3, 4, 5, 6, 7, 9, 13, 16}; x = Math.pow(a[4], a[2]); y = Math.sqrt(a[6] + a[7]);
📌 Topic Information
Subject Java Programming Language
Chapter ICSE Computer Application - Class - X
Sub-Chapter ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
Published 25 Jan 2025

Related Questions

More questions from the same topic.
1
Write the following lava Expression :- \[ z = x^3 + y^2 - \sqrt{xy} \]
2
Rewrite the following code using switch case statement if (value == 1) { System.out.println("1st division"); } else if (value == 2) { System.out.println("2nd division"); } else if (value == 3) { System.out.println("3rd division"); } else { System.out.println("Wrong choice"); }
3
c) If a=24, b=15. find the value of a+=b++ * 5/a++ +b
4
Write the output of the following code :- String x; String str = "INFORMATION"; x = str.concat("PRACTICE"); System.out.println(x.length()); System.out.println(x.toUpperCase());
5
Differentiate between the following code fragments and also give their output :- int f = 1, i = 2; while (++i < 5) f *= i; System.out.println(f); int f = 1, i = 2; do { f *= i; } while (++i < 5); System.out.println(f);
6
Convert the following segment into an equivalent do- while loop. int a, b; for (a = 10, b = 20; b >= 10; b = b - 2) { a++; }
7
What will be the output of the following program segment? int a[] = {1, 2, 3, 4, 5, 6, 7, 9, 13, 16}; x = Math.pow(a[4], a[2]); y = Math.sqrt(a[6] + a[7]);
8
i) Ramesh is trying to write a program to check whether a number is palindrome or not. Due to confusion in the syntax of some of the statements. he could not complete the program and has left some places blank marked with ?1?, ?2?, ?3? and ?4? to be filled with expression function. The incomplete program is shown below: Based on the above discussion. answer the following questions :- &nbsp; a) What expression will be filled in place of ?1? b) What expression will be filled in place of ?2? c) What expression will be filled in place of ?3? d) What expression will be filled in place of ?4? import java.util.*; class Palindrome { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int copy, n, rev = 0; System.out.println("Enter the number"); n = sc.nextInt(); copy = n; while (n != 0) { int r = ?1?; // Place 1 rev = ?2?; // Place 2 n = ?3?; // Place 3 } if (?4?) { // Place 4 System.out.println("Palindrome"); } else { System.out.println("Not palindrome"); } } }
9
চলন কাকে বলে
10
উদ্ভিদের চলন এর উদ্দেশ্য

About Rumman

Learn. Grow. Succeed. Explore courses, articles, videos, GK, blogs, and more.

Quick Links

  • Home
  • Blog
  • Topic
  • Courses

Courses

  • Free Courses
  • Paid Courses

Connect with Us

© 2026 RummanAnsari. All rights reserved.

About Privacy Terms