This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University
Subject Name: Introduction to JAVA & Visual C++
Time: 10:30 AM TO 12:30 PM
--- Content provided by FirstRanker.com ---
Instructions:
- Attempt any FOUR questions out of EIGHT questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
Q.1
--- Content provided by FirstRanker.com ---
- Define following terms:
- Coercion
- Polymorphism
- Applet
MARKS 03
- Define constructor with its properties. Can they be overloaded?
MARKS 04
- Explain in detail the life cycle of a Thread.
MARKS 07
--- Content provided by FirstRanker.com ---
Q.2
--- Content provided by FirstRanker.com ---
- Explain the try-catch statement with one example.
MARKS 03
- Explain command-line interface.
MARKS 04
- Write an application that executes following mentioned threads.
- Displays "HELLO" every 2000 milliseconds
- Displays "WORLD" every 4000 milliseconds.
--- Content provided by FirstRanker.com ---
MARKS 07
Q.3
- Explain the basic structure of C++ program.
MARKS 03
--- Content provided by FirstRanker.com ---
- Explain briefly virtual functions in Visual C++
MARKS 04
- Write a program for drawing a Circle in Visual C++.
MARKS 07
--- Content provided by FirstRanker.com ---
Q.4
- Explain briefly Inheritance and Write an example of inheritance.
MARKS 03
- Explain briefly nested classes in Visual C++.
MARKS 04
- Write a program for drawing following shapes in Visual C++.
- Rectangle
- Square
MARKS 07
--- Content provided by FirstRanker.com ---
Q.5
--- Content provided by FirstRanker.com ---
- Define below listed terms:
- Type Casting
- IDE
- API
MARKS 03
- Determine output of following code:
public static void P()
{ int i=0,-s=1; for(i=1; 1<=3; i++); s=stit+; System.out.println(s+" "+1);
}MARKS 04
- Explain in detail package and interface with appropriate example.
MARKS 07
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Q.6
- Define access specifiers. Draw a table showing all the access specifiers and their accessibility in the class, package, subclasses and other packages.
MARKS 03
-
{ int a=5+2%2/7%3; double b=10/100*25; double c=25*10/100; double d=25%*.1; Systemout.print(a); Systemout.println(b); Systemout.println(c); Systemout.print(d);
}MARKS 04
- Enlist the uses of mentioned below of Thread class with example:
- wait()
- notify()
- sleep()
--- Content provided by FirstRanker.com ---
MARKS 07
--- Content provided by FirstRanker.com ---
Q.7
--- Content provided by FirstRanker.com ---
- Explain abstract classes and abstract methods with appropriate examples.
MARKS 03
- Develop a program in JAVA to convert following:
- Centimeter to Meter
- Kilogram to Grams
MARKS 04
--- Content provided by FirstRanker.com ---
- Develop a code for a BMI (Body Mass Index) calculator in JAVA.
MARKS 07
Q.8
- Differentiate Pure and Impure Functions.
MARKS 03
--- Content provided by FirstRanker.com ---
- Write a program to convert Fahrenheit to Celsius in JAVA.
MARKS 04
- Design a JAVA code for a simple calculator.
MARKS 07
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University
--- Content provided by FirstRanker.com ---