Jpr - Qb Chapter 01

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Jpr - Qb Chapter 01 as PDF for free.

More details

  • Words: 585
  • Pages: 2
Question Bank: Java Programming (9113) Class: TYIF (Semester – V) Chapter No. 01

Introduction to Java

Review Questions: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

Explain how you are going to compile and execute a Java source file? Why Java is called as strictly object-oriented? Which are the distinct features which made Java as a platform independent language? What will be the purpose of Java program to be compiled and interpreted? Give the meaning of following terms: a) Java virtual machine b) bytecode Describe the terms which makes a programming language as objectoriented? Differentiate between object-oriented programming and procedure oriented programming. List any five major C++ features which are removed in the Java. Explain any two differences between >> and >>>. How to declare symbolic constants in Java? Explain the concept of manual and automatic type casting. Why it is required in the programming? Describe the scopes that a Java variable can have. Illustrate the use of instanceOf and dot operator with example. What are the naming convention rules for a Java identifier? Describe different logical and relational operators with example. What do you mean by operator precedence and association? Differentiate between while and do-while loops. Which are the type promotions rules used in the Java expression? Illustrate with appropriate example. Enlist different forms of creating the if-else structure. Explain switch-case with the help of flow diagram.

Programming exercise: 1. 2. 3. 4. 5. 6.

Input two integer values from keyboard and swap their contents without using any other temporary variable. Read the price of an item (rupees) in float and display number of paise. Convert the Celsius temperature input from keyboard into its Fahrenheit equivalent using following formula: C = (F – 32) /1.8 Accept the value of money in rupees and convert it into dollars. Determine the sum of following series: 1 + 1/2 + 1/3 + …….. 1/n. take n as input Print the Fibonacci series on the screen by taking n as input from keyboard: 1 1 2 3 5 8 ……. n -1-

7. 8. 9. 10. 11. 12. 13. 14. 15. 16.

17. 18. 19. 20.

Find squares of all the numbers from 1 to n. Accept a number as input and find its sum of digits. Input a number and print it in reverse order. Input a long number from keyboard and count total number of even digits in it. Find the number of and sum of all the integers greater than 100 and less than 200 that are divisible by 7. Accept marks of 10 different students from keyboard and analyze it. That is, count total first, second and pass class students. Making the use of continue statement find whether the entered number is prime or not? Count how many perfect square numbers are also perfect cube numbers from 1 to 1000. Determine whether the entered number is palindrome or not? (A palindrome number is read same from both front and back sides such as 56365, 812218, 121 etc.) Print following output using for loops: * ** *** **** Count how many perfect square numbers are palindrome numbers from 1 to 10000. Input the clock time and find the angle made between the ticks of the analog clock. Accept a number from keyboard and find its roman and binary equivalent. Find all the natural Armstrong numbers For example: 153 is an Armstrong number satisfies this property: 153 = 13 + 53 + 33.

-2-

Related Documents

Jpr - Qb Chapter 01
June 2020 7
Jpr - Qb Chapter 05
June 2020 3
Jpr - Qb Chapter 02
June 2020 11
Jpr - Qb Chapter 06
June 2020 5
Jpr - Qb Chapter 04
June 2020 7
Jpr - Qb Chapter 03
June 2020 10