Academy of PakistanTest & Learning
804Active Users
Academy of PakistanTest & Learning
HomePakistan MCQsPast PapersInternshipsPakistan JobsScholarshipsPDFsAbout Us
804Active Users
Login
HomePakistan MCQsPast PapersInternshipsPakistan JobsScholarshipsSubmit MCQsProfile

Categories

All CategoriesManagement ScienceEngineeringMedical SubjectsOther SubjectsTesting AgenciesPublic Service Commissions
Explore All Categories
Home›MCQs›Software Engineering MCQs›Java Concepts & Programming›What is the output for the below code? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } }?
182Software EngineeringMedium
WhatsApp

What is the output for the below code? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } }?

ANone
B7 8
C8 7
D9 8

Correct answer

C. 8 7

Explanation

The correct answer is 8 7.

Question ID: software-engineering-1161

Previous MCQNext MCQ

Related Software Engineering MCQs

  • A task of developing a technical blueprint and specifications for a solution that fulfills the business requirements is undertaken in the following phase of the system development process?
  • Which one of the tests is performed on a subset of a program?
  • What executable unit gets created when we build an ASP.Net application?
  • Which one of the following allows a user at one site to establish a connection to another site and then pass keystrokes from local host to remote host?
  • Which part of a computer helps to store information?
  • The object is created with “new” keyword?

Continue learning

Software Engineering MCQsJava Concepts & ProgrammingPractice quizPast papers
Academy of Pakistan

Pakistan's leading platform for competitive exam preparation, offering 89,000+ solved MCQs, past papers, tests, and career opportunities for CSS, PMS, FPSC, PPSC, and NTS aspirants.

contact@academyofpakistan.com

Study & Prep

  • Pakistan MCQ Question Bank
  • Past Papers Archive
  • Government & Private Jobs
  • Scholarships & Grants
  • Internships Portal

Legal & Trust

  • Privacy Policy
  • Terms of Service
  • About Us
  • Contact Us
  • Disclaimer
  • Ad Choices

© 2026 Academy of Pakistan. All rights reserved.

Privacy•Terms•Disclaimer•About•Contact
HomeMCQsPakistan JobsInternshipsScholarships