This document contains 25 questions about basic syntactical constructs in Java for a course on Java Programming. The questions cover topics like dynamic initialization, the instanceof operator, classes and objects, type casting, Armstrong numbers, Java features, if/switch statements, labeled loops, break/continue, mathematical functions, patterns using loops, conditional operators, even/odd numbers, bitwise operators, logical operators, Fibonacci series, and switch statements. The questions are intended as a question bank for a Java programming course covering basic Java syntax and programming concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
45 views1 page
JPR Unit 1 QB
This document contains 25 questions about basic syntactical constructs in Java for a course on Java Programming. The questions cover topics like dynamic initialization, the instanceof operator, classes and objects, type casting, Armstrong numbers, Java features, if/switch statements, labeled loops, break/continue, mathematical functions, patterns using loops, conditional operators, even/odd numbers, bitwise operators, logical operators, Fibonacci series, and switch statements. The questions are intended as a question bank for a Java programming course covering basic Java syntax and programming concepts.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
MET’S INSTITUTE OF TECHNOLOGY - POLYTECHNIC,
BHUJBAL KNOWLEDGE CITY, ADGAON, NASHIK
DEPARTMENT OF COMPUTER ENGINEERING
QUESTION BANK Course Name & Code : Java Programming & 22412 Course Year & Scheme: CO4I
Unit 1: Basic Syntactical Constructs in Java
1. Define dynamic initialization? Give example.
2. State the is use of ‘instanceof’ operator? Give example. 3. Define the Class and Object with example. 4. Define Type casting? Give its types. 5. Describe type casting in java with example. 6. Write a program to print all the Armstrong numbers from 0 to 999. 7. Describe any four features of java. 8. Differentiate between if statement and switch statement. 9. What is labeled loops in Java? Give example. 10. State the use of ‘break’ and ‘continue’ in loops. 11. Give syntax and example of mathematical functions – sqrt(), pow(). 12. Give syntax and example of mathematical functions – round(), min(), max(). 13. Write a Java program to find the max of given three numbers using max() function. 14. Write a Java program to print following any pattern using nested loops. A 1 ***** BB 22 **** CCC 333 *** DDDD 4444 ** EEEEE 55555 * 15. Write a Java program to check a number is even or odd using conditional (? :) operator. 16. Write a Java program to display numbers between 1 to 100 which are multiples of 3 and 7. 17. Describe the bitwise operators in Java. 18. Enlist the logical operators in Java. 19. Write a Java Program to find out the even numbers from 1 to 100 using for loop. 20. Write a Java Program to generate Fibonacci series. 21. Write a Java Program to check entered number is palindrome or not. 22. Explain switch case and conditional operator in java with suitable example. 23. Describe with suitable example, nested-switch statement. 24. Explain with suitable example – implicit and explicit typecasting in Java. 25. Explain for each version of for loop with suitable example. Prepared by: S. P. Kholambe