Mumbai University - B.Sc.IT: Semester - VI - C# (Question Paper) [IDOL - Old Course] [May - 2018]

Slides:



Advertisements
Similar presentations
The Line Class Suppose you are involved in the development of a large mathematical application, and this application needs an object to represent a Line.
Advertisements

Core Java Lecture 4-5. What We Will Cover Today What Are Methods Scope and Life Time of Variables Command Line Arguments Use of static keyword in Java.
Written by: Dr. JJ Shepherd
Chapter 7 User-Defined Methods. Chapter Objectives  Understand how methods are used in Java programming  Learn about standard (predefined) methods and.
Final and Static Keywords. Creating constants  There will be occasions where data items in a program have values that do not change.  Maximum score.
1 Chapter 4 Language Fundamentals. 2 Identifiers Program parts such as packages, classes, and class members have names, which are formally known as identifiers.
C#.NET C# language. C# A modern, general-purpose object-oriented language Part of the.NET family of languages ECMA standard Based on C and C++
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 13: Pointers, Classes, Virtual Functions, and Abstract Classes.
C++ Programming: From Problem Analysis to Program Design, Fourth Edition Chapter 14: Pointers, Classes, Virtual Functions, and Abstract Classes.
220 FINAL TEST REVIEW SESSION Omar Abdelwahab. INHERITANCE AND POLYMORPHISM Suppose you have a class FunClass with public methods show, tell, and smile.
BASE CLASSES AND INHERITANCE CHAPTER 4. Engineer Class.
Java ProgrammingtMyn1 Java Programming Timo Mynttinen Mikkeli University of Applied Sciences.
Hello.java Program Output 1 public class Hello { 2 public static void main( String [] args ) 3 { 4 System.out.println( “Hello!" ); 5 } // end method main.
CS 112 Department of Computer Science George Mason University CS 112 Department of Computer Science George Mason University Final Review Lecture 14.
Programming in C++.
Chapter 12: Pointers, Classes, Virtual Functions, and Abstract Classes.
Data Structures Using Java1 Chapter 2 Inheritance and Exception Handling.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
JavaScript, Fourth Edition
CIS 270—Application Development II Chapter 8—Classes and Objects: A Deeper Look.
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Summary and Exam COMP 102.
CIS 200 Test 01 Review. Built-In Types Properties  Exposed “Variables” or accessible values of an object  Can have access controlled via scope modifiers.
Chapter 6 - More About Problem Domain Classes1 Chapter 6 More About Problem Domain Classes.
Written by: Dr. JJ Shepherd
1 C# - Inheritance and Polymorphism. 2 1.Inheritance 2.Implementing Inheritance in C# 3.Constructor calls in Inheritance 4.Protected Access Modifier 5.The.
© 2006 Pearson Addison-Wesley. All rights reserved 1-1 Chapter 1 Review of Java Fundamentals.
Java Programming: Guided Learning with Early Objects Chapter 9 Inheritance and Polymorphism.
Arrays Chapter 7.
.NET MCQs MULTIPLE CHOICE QUESTION
Some Assignments  Write a program which prints the following information about at least 5 persons: NAME MAIL-ID EMPLOYEE-CODE PHONE Eg. Umesh
ALGORITHMS AND FLOWCHARTS
Debugging and Handling Exceptions
Chapter 7 User-Defined Methods.
Chapter 13: Pointers, Classes, Virtual Functions, and Abstract Classes
CIS 200 Test 01 Review.
Chapter 4: Control Structures I
Java Primer 1: Types, Classes and Operators
Object-Orientated Programming
Fundamental of Java Programming Basics of Java Programming
Indexer AKEEL AHMED.
Mumbai University - B.Sc.IT: Semester - VI - Customer Relationship Management (Question Paper) [IDOL - Old Course] [May ]
.NET and .NET Core 5.2 Type Operations Pan Wuming 2016.
Chapter 12: Pointers, Classes, Virtual Functions, and Abstract Classes
Control Statement Examples
Object Based Programming
Chapter 4: Control Structures I
Exception Handling Chapter 9.
Final Review Dr. Xiaolin Hu.
Java Programming Language
Conditional Statements
Exception Handling Chapter 9 Edited by JJ.
Exam 1 Material Study Guide
CS 1428 Final Exam Review.
If selection construct
Type & Typeclass Syntax in function
BBIT 212/ CISY 111 Object Oriented Programming (OOP)
Final Review Fan Bai Csc 2310 Spring 2012.
Review for Final Exam.
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Final Review Bina Ramamurthy 4/5/2019 BR.
Suggested self-checks: Section 7.11 #1-11
CIS 199 Final Review.
Final Review Bina Ramamurthy 4/15/2019 BR.
Conditionals and Loops
Final Review Dr. Xiaolin Hu.
Review for Midterm 3.
First Semester Review.
Arrays.
Lesson 3. Controlling program flow. Loops. Methods. Arrays.
Presentation transcript:

Mumbai University

Time: 3 Hours 1)Question No. 1 is Compulsory. 2)Attempt any four from Question Nos. 2 to 7. 3)Make Suitable Assumptions Wherever Necessary And State The Assumptions Made. 4)Answer To The Same Question Must Be Written Together. 5)Number To The Right Indicates Marks. 6)Draw Neat Labeled Diagrams Wherever Necessary. Total Marks: 100 NOTES

Q.1 Attempt The Following Questions: (20 Marks) a)What is arithmetic expression? Explain evaluation of expressions. b)Write short note on Common Language Runtime. c)Briefly explain reference types and value types. Give examples for both. d)What is a constructor? Explain about static constructor.

(A) Write a program to print the following pattern using nested for loop: (B) Give a brief account on: (i) if…else statement (ii) the ?: operator (C) What do you mean by type casting? Explain Pow and Sqrt methods of Math class with proper syntax and example. Q.2 Attempt The Following Questions: (20 Marks)

a)What are method parameters? Explain out and ref parameters with example. b)Write a program to print the difference between the largest and the first elements of a one dimensional integer array. c)What is read-only and write-only Property? Explain read- write property definition with an example. Q.3 Attempt The Following Questions: (20 Marks)

(A) Design a class named Point2D with data members for storing x coordinate and y coordinate of a point. Include relevant constructors and operator methods so that the following operations can be performed from Main method. Point2D p1=new Point2D(20,40); Point2D p2=new Point2D(50,100); p1++; Point2D p3=p1+p2; (B) Write short note on: (i) Boxing and Unboxing (ii) for loop (C) What is inheritance? Explain about classical inheritance. Q.4 Attempt The Following Questions: (20 Marks)

(A) Write a program to create a sealed class called StudentExam with data members for storing roll number and marks obtained in 3 subjects of a student. It also has the following constructor and methods: 1.Constructor that initializes all data members. 2.Method isPassed(), to check whether the student has passed in every subject. 3.Method displayTotal(), for displaying the total marks obtained in all subjects provided the student has scored minimum 40 marks in every subject or else, display the message “Student is failed”. 4.Main method to test the program by creating object of StudentExam class. (B) What are Interfaces? Explain implementing an interface in a class with an example. (C) How is a structure declared? Differentiate between structures and classes. Q.5 Attempt The Following Questions: (20 Marks)

(A) Explain each of the following with proper syntax and example: i.Delegate Declaration ii.Delegate Methods iii.Delegate Instantiation iv.Delegate Invocation (B) What are Private, Protected and Public members of a class? Explain method overloading with example. (C) What is Formatted Output? Explain Fixed-Point Formatting and Exponential Formatting with examples. Q.6 Attempt The Following Questions: (20 Marks)

(A) Write a program to create a class Voter with attributes voter_id, name and age. Include relevant constructors to initialize its data members. If age is less than 18 years, then raise a user defined exception with error message "You are not eligible to vote". (B) Write short notes on each of the following: (i) General Catch Handler (ii) Finally Block (iii) Checked Exceptions (C) What is Verbatim String? Explain the use of Equals() method and == operator for checking equality of two strings. Q.7 Attempt The Following Questions: (20 Marks)

Best of Luck 4 U-R EXAMINATION

Please SUBSCRIBE For Latest Updates