Trending ▼   ResFinder  

ICSE − Q & A

ICSE
Indian Certificate of Secondary Education (ICSE), New Delhi
+Fave Message

Ask a Question

Answer a Question!

ResFinder - Thousands of Practice Papers

public class sales          
 { int invoice=1234; 
   static pro_code;
 
     public static void main()
         { sales s= new sales();
           int price=1000;
           s.show(price); 
              } 
     void show(int pr) 
       { System.out.println(invoice); 
         System.out.println(pro_code);
         System.out.println(pr); 
        }
 }       

Name the following from the above code: 
 (i) class variable  // pro_code??
 (ii) local variable  // price??
 (iii) instance variable  //invoice??
 (iv) method variable   // pr??

Are these answers correct? Please help!!
asked by Shreya Bhagat (hermione02) 6 years ago
3
any eco students ??in our papaer 4 marks were out of scope right`???
asked by Aryan Kapoor (aryan9917) 6 years ago
0
whats the difference between a method and a function
asked by Rtstud (mdarfath) 6 years ago
3
int z=148;
 while (10>9)
 {
 if(z<139) 
break;
 System.out.println("computer" +z);
 z=z-3;
 }System.out.println(z);
 How many times the loop will execute ?
What is the output?
asked by Tiara Elizabeth (thejtthomas) 6 years ago
2
Can anyone pls... Explain me selection and and bubble sort program with the help of dry run
asked by Mokshil Shah (phoenix80) 6 years ago
2
If you want to practice output prediction question, here's the link --->
https://drive.google.com/folderview?id=1-2xrFu4I-iZaHlK_g288VuNvI8ZM9zqQ


I hope this will help :D
All the best!
asked by J (jatin_01) 6 years ago
6
Is it necessary to use public for function prototype questions
ex:can we write float sum(int x) instead of public float sum(int x)
asked by Jeff mckinley (chende) 6 years ago
2
Hope rises like a phoenix from the ashes of shattered dreams.
asked by Pranav Ajinkya (narutorocks7) 6 years ago
6
Is this the correct format of writing a number program using method? , if not send me the format Thank you... 

import java.util.*;
class Niv
{
    public static void main(String args [])
    {
        Scanner in = new Scanner(System.in);
        System.out.println("Enter a number");
        int n=in.nextInt();
        int num=n;
        int sum=sumOfDigits(n);
        
        if(num%sum==0)
        System.out.println(num+" is a Niven number");
        else
         System.out.println(num+" is not a given number");
          
         
        }
        
        
        public static int sumOfDigits(int g)
        {
            int sum=0;
            while(g>0)
            {
            int rem;
            rem=g%10;
            sum=sum+rem;
            g=g/10;
        }
        return sum;
        
        
        
    }
}
asked by Uttam Soren (uttamsoren1735) 6 years ago
1
Anyone have together with biology notes...pls share with me drive link or mai me..(CH:reproduction, nervous system and genetics..)


..pls
asked by Devansh Tripathi (drdevansh) 6 years ago
2

<< Prev

    Page 408    

Next Page >>

ICSE chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us