FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download GTU B.Tech 2020 Winter 7th Sem 2170309 Introduction To Java And Visual C++ Question Paper

Download GTU (Gujarat Technological University Ahmedabad) B.Tech/BE (Bachelor of Technology/ Bachelor of Engineering) 2020 Winter 7th Sem 2170309 Introduction To Java And Visual C++ Previous Question Paper

This post was last modified on 04 March 2021

This download link is referred from the post: GTU B.Tech 2020 Winter Question Papers || Gujarat Technological University


FirstRanker.com

Subject Name: Introduction to JAVA & Visual C++

Time: 10:30 AM TO 12:30 PM

--- Content provided by FirstRanker.com ---

Instructions:

  1. Attempt any FOUR questions out of EIGHT questions.
  2. Make suitable assumptions wherever necessary.
  3. Figures to the right indicate full marks.

Q.1

--- Content provided by FirstRanker.com ---

  1. Define following terms:
    1. Coercion
    2. Polymorphism
    3. Applet

    MARKS 03

  2. --- Content provided by FirstRanker.com ---

  3. Define constructor with its properties. Can they be overloaded?

    MARKS 04

  4. Explain in detail the life cycle of a Thread.

    MARKS 07

Q.2

--- Content provided by FirstRanker.com ---

  1. Explain the try-catch statement with one example.

    MARKS 03

  2. Explain command-line interface.

    MARKS 04

  3. Write an application that executes following mentioned threads.
    1. Displays "HELLO" every 2000 milliseconds
    2. --- Content provided by FirstRanker.com ---

    3. Displays "WORLD" every 4000 milliseconds.
    Create the threads by implementing the Runnable interface.

    MARKS 07

Q.3

  1. Explain the basic structure of C++ program.

    MARKS 03

    --- Content provided by FirstRanker.com ---

  2. Explain briefly virtual functions in Visual C++

    MARKS 04

  3. Write a program for drawing a Circle in Visual C++.

    MARKS 07

  4. --- Content provided by FirstRanker.com ---

Q.4

  1. Explain briefly Inheritance and Write an example of inheritance.

    MARKS 03

  2. Explain briefly nested classes in Visual C++.

    MARKS 04

  3. --- Content provided by FirstRanker.com ---

  4. Write a program for drawing following shapes in Visual C++.
    1. Rectangle
    2. Square

    MARKS 07

Q.5

--- Content provided by FirstRanker.com ---

  1. Define below listed terms:
    1. Type Casting
    2. IDE
    3. API

    MARKS 03

  2. --- Content provided by FirstRanker.com ---

  3. 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

  4. --- Content provided by FirstRanker.com ---

  5. Explain in detail package and interface with appropriate example.

    MARKS 07

Q.6

  1. Define access specifiers. Draw a table showing all the access specifiers and their accessibility in the class, package, subclasses and other packages.

    MARKS 03

  2. --- Content provided by FirstRanker.com ---


  3. { 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

  4. Enlist the uses of mentioned below of Thread class with example:
    1. wait()
    2. --- Content provided by FirstRanker.com ---

    3. notify()
    4. sleep()

    MARKS 07

Q.7

--- Content provided by FirstRanker.com ---

  1. Explain abstract classes and abstract methods with appropriate examples.

    MARKS 03

  2. Develop a program in JAVA to convert following:
    1. Centimeter to Meter
    2. Kilogram to Grams

    MARKS 04

    --- Content provided by FirstRanker.com ---

  3. Develop a code for a BMI (Body Mass Index) calculator in JAVA.

    MARKS 07

Q.8

  1. Differentiate Pure and Impure Functions.

    MARKS 03

    --- Content provided by FirstRanker.com ---

  2. Write a program to convert Fahrenheit to Celsius in JAVA.

    MARKS 04

  3. Design a JAVA code for a simple calculator.

    MARKS 07

  4. --- 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 ---