Renault Nissan Placement Paper Part-1

Size: px
Start display at page:

Download "Renault Nissan Placement Paper Part-1"

Transcription

1 Renault and Nissan interview process Selection process consisted of three rounds 1.Written test 2.Technical interview 3.HR interview Written test had 50 aptitude questions to be solved in 1 hour. Questions were from almost all the topics of any standard aptitude book. Technical Interview-30 min Tell me about yourself and all further questions stemmed from here. I was asked questions from C,C++, Data structures,networks, about my projects, few questions on compiler design and software engineering. HR interview-10 min Why Renault Nissan? Are u interested to work abroad? Then questions about my family background, my schooling and hobbies. Renault Nissan Paper January 2012:- Aptitude fully from solved examples from RS AGARWAL. Few questions from probability, Permutations, Profit & Loss, SI, CI, TRAIN. /////////////////////////////////////////////////////////////////// Questions 1-5 are to be answered on the following data A causes B or C, but not both F occurs only if B occurs D occurs if B or C occurs E occurs only if C occurs J occurs only if E or F occurs D causes G,H or both H occurs if E occurs G occurs if F occurs 1. If A occurs which of the following must occurs I. F and G II. E and H III. D (a) I only (b) II only (c) III only (d) I,II, & III (e) I & II (or) II & III but not both Ans. (e)

2 2. If B occurs which must occur (a) D (b) D and G (c) G and H (d) F and G (e) J Ans. (a) 3. If J occurs which must have occured (a) E (b) either B or C (c) both E & F (d) B (e) both B & C Ans. (b) 4. Which may occurs as a result of cause not mentioned I. D II. A III. F (a) I only (b) II only (c) I & II (d) II & III (e) I,II & III Ans. (c) 5. E occurs which one cannot occurs (a) A (b) F (c) D (d) C (e) J Ans. (b) 5. Piggy backing is a technique for a) Flow control b) Sequence c) Acknowledgement d) retransmition Ans. (c)

3 6. Mohan earned twice as much as Deep. Yogesh earned rs.3/- more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts? a) M < D < Y b) M < Y < D c) D < M < Y d) It cann't be determined from the information given e) D < Y < M ans d) 7. Statistics indicate that men drivers are involved in more accidents than women drivers. Hence it may be concluded that... a) sufficiently information is not there to conclude anything b) Men are actually better drivers but drive more frequently c) Women Certainly drive more cautiously than Men d) Men chauvinists are wrong about women's abilties. e) Statistics sometimes present a wrong picture of things 8. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what will be the cost of a kg of paper after 2 years? (a) (b) (c) (d) (e) none of these 10. If x,y,z are the marbles initially with A,B,C respectively. Then the number of marbles B have at the end (a) 2(x-y-z) (b) 4(x-y-z) (c) 2(3y-x-z) (d) x + y-z Ans. (c) //////////////////////////////////////////////////// 1. If the total number of marbles are 72, then the number of marbles with A at the starting (a) 20 (b) 30

4 (c) 32 (d) 39 Ans. (d) 2. struck a int x; float y; char c[10]; union b int x; float y; char c[10]; which is true? a) size of(a)!=sizeof(b); b) c) d) 3. # define f(a,b) a+b #defiune g(c,d) c*d find valueof f(4,g(5,6)) a)26 b)51 c) d) 15). find avg access time of cache a)tc*h+(1-h)*tm b)tch+tmh c) d) tc is time to access cache tm is time to access when miss occure 4. main() char a[10]="hello"; strcpy(a,'\0'); printf("%s",a); out put of the program? a) string is null b) string is not null c) program error d) 5. simplyfy k map 1 x x 0 1 x ). int f(int a)

5 a=+b; //some stuff main() x=fn(a); y=&fn; what are x & y types a) x is int y is pointer to afunction which takes integer value 6. char a[5][15]; int b[5][15]; address of a 0x1000 and b is 0x2000 find address of a[3][4] and b[3][4] assume char is 8 bits and int is 32 bits a) b) c) d) There are 20 questions all in technical paper and 36 questions in aptitude test in aptitude they have given all diagrams and asked to find what comes next they are quite easy and i hope if u practice r. s aggarval u can do it easily for technical they have given 1 hr for 20 questions and for not technical they have given only 40 min and 36 questions 7. main() fork(); fork(); fork(); printf("\n hello"); How many times print command is executed? 8. main() int i,*j; i=5; j=&i; printf("\ni= %d",i); f(j); printf("\n i= %d",i); void f(int*j) int k=10; j= &k; output is a 5 10

6 b 10 5 c 5 5 d none 9. In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there (a) 30 (b) 33 (c) 36 (d) none of these. Ans. (d) 10. A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate? (a) 17 (b) 14 (c) 13 (d) None of these /////////////////////////////////////// YNL Team August 6, 2012 Renault Nissan Part IV Renault Nissan Placement Papers Part IV Q. No.1: Which of the following does POP stand for? A. Post Office Protocol B. Peer over peer C. Private Office Protocol D. Post Optical Protocol Q. No.2: Which of the following stages of compilation produces a syntax tree? A. Parsing B. Code generation C. Lexical analysis

7 D. Semantic analysis Q. No.3: Which of the following is not contained in a system description? A. Internal data flows B. Flows leaving and entering the system C. Relationship between external entities D. Internal components or processes Q. No.4: What is the result of adding the binary numbers and on an 8 bit machine? A B C D Q. No.5: How is the decimal value for 30 represented in binary? A B C D Q. No.6: A memory chip has 8 data lines and 9 address lines. How many bytes can be stored on it? A. 511 B. 512 C. 500 D. 256 Q. No.7: Which of the following devices requires the highest input data transfer rate? A. Mouse B. Keyboard C. Floppy disk

8 D. CD Q. No.8: If a & b are 2 positive integers and (a-b)/3.5 = 4/7 then- A. b<a B. b=a C. b> =a D. b<=a Q. No.9: A s population is and it decreases by 80 per year. B s population is and it increases by 120 per year. After how many years both cities will have same population? A. 150 B. 130 C. 120 D. 110 Q. No.10: On Jan 10th, with the temperature at 15 degree Fahrenheit, it snows all day. On how many lines will service be affected, including both morning and afternoon? A. 2 B. 3 C. 4 D. 5 Answers to the above questions- Answer 1 A Answer 2 A Answer 3 C Answer 4 A Answer 5 C Answer 6 B

9 Answer 7 D Answer 8 A Answer 9 B Answer 10 D fresher jobs YNL Team August 6, 2012 Part III Renault Nissan Placement Papers Part III Directions 1-2: In each of the following questions, a sentence has been given in Active (or passive) voice. Out of the four alternatives suggested select the one which best express the same sentence in Passive (or Active) Voice. Q. No.1: I know him. A. He is known by me B. He was known to me C. He has been known by me D. He is known to me Q. No.2: The residents celebrated the Independence Day A. The Independence Day celebrated by the residents B. The Independence Day was celebrated by the residents C. The Independence Day has been celebrated by the residents D. Celebration of Independence Day was done by the residents Directions 3-5: Pick out the most effective word from the given words to fill in the blank to make the sentence meaningfully complete Q. No.3: Even if rains all day I will not be able to my journey A. put by B. put out C. put off D. put away

10 Q. No.4: Help yourself whatever you can use without wasting A. with B. to C. in D. for Q. No.5: There is an exception every rule. A. on B. to C. in D. for Q. No.6: Find sum of 3 + 5/(1+22) + 7/( ) + A. 3n + 1 B. 3n/ (1+n) C. None of these Q. No.7: Out of 55 eggs 5 are defective. What is % of defective eggs? A. 8/12% B. 9/11% C. 10% D. 11% Q. No.8: 1/8 is divided by s, if s is increased by 2 times, what is the result? A. Increases by one time B. Decreases by two times C. Increases two times D. None of these Q. No.9: For each hour a watch is going slow by 30 seconds. Now time is 8 a.m. What will be the actual time at 8 p.m?

11 A. 8:00 B. 9:00 C. 7:50 D. 7:54 Q. No.10: If a person walks at 4/5th of his usual speed he reaches 40 mins late. If he walks at his usual speed how much time does he travels? A. 160 mins B. 120 mins C. 150 mins D. 180 mins Answers to the above questions- Answer 1 D Answer 2 D Answer 3 C Answer 4 B Answer 5 B Answer 6 B Answer 7 B Answer 8 C Answer 9 D Answer 10 A

WIPRO Placement Paper By Students3k.com

WIPRO Placement Paper By Students3k.com WIPRO Placement Paper By Students3k.com (Aptitude and Technical) PART -1 Aptitude 15 Questions: Questions = 50 ; Time limit = 50 minutes. no negative marking. Offline (paper & pen) test Section1- English,

More information

HCL Aptitude Test a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c Ans. 11/30

HCL Aptitude Test a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c Ans. 11/30 HCL Aptitude Test 3 1. a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c Ans. 11/30 2. What does the hexa number E78 in radix 7. (a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 Ans. (d) 3. What does the

More information

Comp 11 Lectures. Mike Shah. June 26, Tufts University. Mike Shah (Tufts University) Comp 11 Lectures June 26, / 57

Comp 11 Lectures. Mike Shah. June 26, Tufts University. Mike Shah (Tufts University) Comp 11 Lectures June 26, / 57 Comp 11 Lectures Mike Shah Tufts University June 26, 2017 Mike Shah (Tufts University) Comp 11 Lectures June 26, 2017 1 / 57 Please do not distribute or host these slides without prior permission. Mike

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

Scientific Computing

Scientific Computing Scientific Computing Martin Lotz School of Mathematics The University of Manchester Lecture 1, September 22, 2014 Outline Course Overview Programming Basics The C++ Programming Language Outline Course

More information

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

COP 3223 Introduction to Programming with C - Study Union - Fall 2017 COP 3223 Introduction to Programming with C - Study Union - Fall 2017 Chris Marsh and Matthew Villegas Contents 1 Code Tracing 2 2 Pass by Value Functions 4 3 Statically Allocated Arrays 5 3.1 One Dimensional.................................

More information

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE a) Mention any 4 characteristic of the object car. Ans name, colour, model number, engine state, power b) What

More information

HCL Placement Paper 10

HCL Placement Paper 10 HCL Placement Paper 10 HCL Technology Interview 2004 in MKU Technical interview is held for 30 min to 1 hr 20min depending upon the stuff. Concentrated areas are 1) OS Concepts 2) C Programming skill 3)

More information

1. Arrange the fractions 5/8, 7/12, 13/16, 16/29 and 3/4 in ascending order of magnitude.

1. Arrange the fractions 5/8, 7/12, 13/16, 16/29 and 3/4 in ascending order of magnitude. IBM Placement Paper: 1. Arrange the fractions 5/8, 7/12, 13/16, 16/29 and 3/4 in ascending order of magnitude. Ans-16/29 < 7/12 < 5/8 < 3/4 < 13/16 2. Identify the missing number in the series. 54, 49,?,

More information

Questions = 50; time limit = 50 minutes. No negative marking. Offline (paper & pen) test. There was individual cut off for all the sections

Questions = 50; time limit = 50 minutes. No negative marking. Offline (paper & pen) test. There was individual cut off for all the sections Aptitude test : Questions = 50; time limit = 50 minutes. No negative marking. Offline (paper & pen) test. There was individual cut off for all the sections Section 1: English, 15 questions Direction 1-5:

More information

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

COP 3223 Introduction to Programming with C - Study Union - Fall 2017 COP 3223 Introduction to Programming with C - Study Union - Fall 2017 Chris Marsh and Matthew Villegas Contents 1 Code Tracing 2 2 Pass by Value Functions 4 3 Statically Allocated Arrays 5 3.1 One Dimensional.................................

More information

Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1

Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1 Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1 The Computer Parts of a Computer The Mouse Disks What Can You Do? Programs Windows Parts of a Computer A computer

More information

2008 Geometric Placement Paper

2008 Geometric Placement Paper 2008 Geometric Placement Paper GEOMETRIC PAPER ON 4th APRIL 2008 Paper Pattern I Test : General Intelligence II test : Technical test III test : C-language I Test Some of the questions what I have I am

More information

RouteOp. Step 1: Make sure requirements are met.

RouteOp. Step 1: Make sure requirements are met. RouteOp If you are just getting started please note that the features are not enabled until your first call. You will receive a welcome email to get the ball rolling and will be hearing from your implementation

More information

Dept. of CSE, IIT KGP

Dept. of CSE, IIT KGP Control Flow: Looping CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Types of Repeated Execution Loop: Group of

More information

Should you know scanf and printf?

Should you know scanf and printf? C-LANGUAGE INPUT & OUTPUT C-Language Output with printf Input with scanf and gets_s and Defensive Programming Copyright 2016 Dan McElroy Should you know scanf and printf? scanf is only useful in the C-language,

More information

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)... Remembering numbers (and other stuff)... Let s talk about one of the most important things in any programming language. It s called a variable. Don t let the name scare you. What it does is really simple.

More information

Reviewers: Approval Date: REF No:

Reviewers: Approval Date: REF No: Title: Parts of a computer Contributors: Mira Hirani Std: 1 Reviewers: Srinath Perur Submission Date: Approval Date: REF No: Brief Description: Goal: Prerequisites: Duration: Resources: This unit covers

More information

M/s. Managing distributed workloads. Language Reference Manual. Miranda Li (mjl2206) Benjamin Hanser (bwh2124) Mengdi Lin (ml3567)

M/s. Managing distributed workloads. Language Reference Manual. Miranda Li (mjl2206) Benjamin Hanser (bwh2124) Mengdi Lin (ml3567) 1 M/s Managing distributed workloads Language Reference Manual Miranda Li (mjl2206) Benjamin Hanser (bwh2124) Mengdi Lin (ml3567) Table of Contents 1. Introduction 2. Lexical elements 2.1 Comments 2.2

More information

COMPUTER APPLICATION

COMPUTER APPLICATION Total No. of Printed Pages 16 HS/XII/A.Sc.Com/CAP/14 2 0 1 4 COMPUTER APPLICATION ( Science / Arts / Commerce ) ( Theory ) Full Marks : 70 Time : 3 hours The figures in the margin indicate full marks for

More information

PPT-2011 Test No 11 FM:- 45. Aptitude

PPT-2011 Test No 11 FM:- 45. Aptitude PPT-2011 Test No 11 FM:- 45 Aptitude 1. If 13 = 13w/(1-w),then (2w) 2 =? A.1/4 B.1/2 C.1 D.2 2. If a and b are positive integers and (a-b)/3.5 = 4/7, then A. b < a B. b > a C. b = a D. b >= a 3. If 9x-3y=12

More information

Huawei Placement Paper Questions

Huawei Placement Paper Questions 1.Following some pattern, understand the table and find the answer? JANUARY 20 APRIL 10 MAY 5 NOVEMBER 15 JULY? 2. Find the missing number: 1 10 3 9 5 8 7 7 9 6?? 3. If it was two hours later, it would

More information

Make sure the version number is marked on your scantron sheet. This is Version 1

Make sure the version number is marked on your scantron sheet. This is Version 1 Last Name First Name McGill ID Make sure the version number is marked on your scantron sheet. This is Version 1 McGill University COMP 208 -- Computers in Engineering Mid-Term Examination Tuesday, March

More information

MICROSOFT WORD. Table of Contents. What is MSWord? Features LINC TWO

MICROSOFT WORD. Table of Contents. What is MSWord? Features LINC TWO Table of Contents What is MSWord? MS Word is a word-processing program that allows users to create, edit, and enhance text in a variety of formats. Word is a powerful word-processor with sophisticated

More information

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program 1 By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program variables. Apply C++ syntax rules to declare variables, initialize

More information

Computer Programming. Dr. Fahad Computer Science Deptt.

Computer Programming. Dr. Fahad Computer Science Deptt. Computer Programming Dr. Fahad Computer Science Deptt. Course Description This course provides the fundamental programming concepts. The emphasis will be on problem solving rather than just learning the

More information

Faculty: Pushpendra K Rajput Session:

Faculty: Pushpendra K Rajput Session: Department of Computer Science and Engineering School of Engineering and Technology Assignment No. 2 Given Date: 6 th January, 2017 Subject: Advanced Concepts of C Programming Code: CSE-108 Program/Branch:

More information

The Hyderabad Public School, Begumpet, Hyderabad, A.P

The Hyderabad Public School, Begumpet, Hyderabad, A.P The Hyderabad Public School, Begumpet, Hyderabad, A.P. 500 016 2012-13 Department of Computer Science Class 8 Worksheet 3 1) How many times will the following statement execute? ( ) int a=5; while(a>6)

More information

Chapter 2: Basic Elements of Java

Chapter 2: Basic Elements of Java Chapter 2: Basic Elements of Java TRUE/FALSE 1. The pair of characters // is used for single line comments. ANS: T PTS: 1 REF: 29 2. The == characters are a special symbol in Java. ANS: T PTS: 1 REF: 30

More information

UNIT- 3 Introduction to C++

UNIT- 3 Introduction to C++ UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage

More information

Aptitude Sample Questions

Aptitude Sample Questions Aptitude Sample Questions English Usage Q1. Fill in the blank(s) with the most suitable option. French is difficult language. A. the B. an C. a D. some Q2. Mark the option which is closest to the meaning

More information

Types, lists & functions

Types, lists & functions Week 2 Types, lists & functions Data types If you want to write a program that allows the user to input something, you can use the command input: name = input (" What is your name? ") print (" Hello "+

More information

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. Plan for the rest of the semester: Programming We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. We saw earlier that computers

More information

Basic C++ Code Interview Questions And Answers For Freshers Of Tcs

Basic C++ Code Interview Questions And Answers For Freshers Of Tcs Basic C++ Code Interview Questions And Answers For Freshers Of Tcs This is the second part of my article on programming interview questions, in first part I got In most of phone interviews for Java or

More information

Chapter 10 Language Translation

Chapter 10 Language Translation Chapter 10 Language Translation A program written in any of those high-level languages must be translated into machine language before execution, by a special piece of software, the compilers. Compared

More information

Latest R Systems Placement Test Questions

Latest R Systems Placement Test Questions APTITUDE: Q1. At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be what percent of the original price of the 5 tickets?

More information

Topic 4 Expressions and variables

Topic 4 Expressions and variables Topic 4 Expressions and variables "Once a person has understood the way variables are used in programming, he has understood the quintessence of programming." -Professor Edsger W. Dijkstra Based on slides

More information

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19 Data Storage Geoffrey Brown Bryce Himebaugh Indiana University August 9, 2016 Geoffrey Brown, Bryce Himebaugh 2015 August 9, 2016 1 / 19 Outline Bits, Bytes, Words Word Size Byte Addressable Memory Byte

More information

1- Write a single C++ statement that: A. Calculates the sum of the two integrates 11 and 12 and outputs the sum to the consol.

1- Write a single C++ statement that: A. Calculates the sum of the two integrates 11 and 12 and outputs the sum to the consol. 1- Write a single C++ statement that: A. Calculates the sum of the two integrates 11 and 12 and outputs the sum to the consol. B. Outputs to the console a floating point number f1 in scientific format

More information

I-Flex Technical Paper 1

I-Flex Technical Paper 1 I-Flex Technical Paper 1 1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what wil be the cost of a kg of paper

More information

CPSC 213. Introduction to Computer Systems. Introduction. Unit 0

CPSC 213. Introduction to Computer Systems. Introduction. Unit 0 CPSC 213 Introduction to Computer Systems Unit Introduction 1 Overview of the course Hardware context of a single executing program hardware context is CPU and Main Memory develop CPU architecture to implement

More information

printf( Please enter another number: ); scanf( %d, &num2);

printf( Please enter another number: ); scanf( %d, &num2); CIT 593 Intro to Computer Systems Lecture #13 (11/1/12) Now that we've looked at how an assembly language program runs on a computer, we're ready to move up a level and start working with more powerful

More information

Mock _3_ QUANTITATIVE APTITUDE

Mock _3_ QUANTITATIVE APTITUDE Mock _3_9.1.2018 https://tinyurl.com/ybzrdbfc QUANTITATIVE APTITUDE 1: There is a toy train that can make 10 musical sounds. It makes 2 musical sounds after being defective. What is the probability that

More information

Technical Questions. Q 1) What are the key features in C programming language?

Technical Questions. Q 1) What are the key features in C programming language? Technical Questions Q 1) What are the key features in C programming language? Portability Platform independent language. Modularity Possibility to break down large programs into small modules. Flexibility

More information

Sample Paper on GSAT with Solutions: -

Sample Paper on GSAT with Solutions: - Sample Paper on GSAT with Solutions: - 1. If it costs x dollars for making certain item if quantity is 1000 and if quantity increase then the item is made using y dollars. If z number of items are made

More information

First of all, it is a variable, just like other variables you studied

First of all, it is a variable, just like other variables you studied Pointers: Basics What is a pointer? First of all, it is a variable, just like other variables you studied So it has type, storage etc. Difference: it can only store the address (rather than the value)

More information

Physics 306 Computing Lab 5: A Little Bit of This, A Little Bit of That

Physics 306 Computing Lab 5: A Little Bit of This, A Little Bit of That Physics 306 Computing Lab 5: A Little Bit of This, A Little Bit of That 1. Introduction You have seen situations in which the way numbers are stored in a computer affects a program. For example, in the

More information

CPSC 213. Introduction to Computer Systems. About the Course. Course Policies. Reading. Introduction. Unit 0

CPSC 213. Introduction to Computer Systems. About the Course. Course Policies. Reading. Introduction. Unit 0 About the Course it's all on the web page... http://www.ugrad.cs.ubc.ca/~cs213/winter1t1/ - news, admin details, schedule and readings CPSC 213 - lecture slides (always posted before class) - 213 Companion

More information

City University School of Engineering and Mathematical Sciences Common part 1 COMPUTING. Fortran Lecture 1.1

City University School of Engineering and Mathematical Sciences Common part 1 COMPUTING. Fortran Lecture 1.1 1. Fortran Language City University School of Engineering and Mathematical Sciences Common part 1 COMPUTING Fortran Lecture 1.1 Fortran is a high level computer language first invented in the 1950 s. Fortran

More information

C Program Structures

C Program Structures Review-1 Structure of C program Variable types and Naming Input and output Arithmetic operation 85-132 Introduction to C-Programming 9-1 C Program Structures #include void main (void) { } declaration

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

EECE.2160: ECE Application Programming Spring 2016 Exam 1 Solution

EECE.2160: ECE Application Programming Spring 2016 Exam 1 Solution EECE.2160: ECE Application Programming Spring 2016 Exam 1 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling

More information

LESSON 13: LANGUAGE TRANSLATION

LESSON 13: LANGUAGE TRANSLATION LESSON 13: LANGUAGE TRANSLATION Objective Interpreters and Compilers. Language Translation Phases. Interpreters and Compilers A COMPILER is a program that translates a complete source program into machine

More information

Pointers in C/C++ 1 Memory Addresses 2

Pointers in C/C++ 1 Memory Addresses 2 Pointers in C/C++ Contents 1 Memory Addresses 2 2 Pointers and Indirection 3 2.1 The & and * Operators.............................................. 4 2.2 A Comment on Types - Muy Importante!...................................

More information

Chapter 1 INTRODUCTION

Chapter 1 INTRODUCTION Chapter 1 INTRODUCTION A digital computer system consists of hardware and software: The hardware consists of the physical components of the system. The software is the collection of programs that a computer

More information

Section 3.2 Measures of Central Tendency MDM4U Jensen

Section 3.2 Measures of Central Tendency MDM4U Jensen Section 3.2 Measures of Central Tendency MDM4U Jensen Part 1: Video This video will review shape of distributions and introduce measures of central tendency. Answer the following questions while watching.

More information

COLLEGEDUNIA MCA. 3. What would be displayed, if the following program is compiled and run?

COLLEGEDUNIA MCA. 3. What would be displayed, if the following program is compiled and run? MCA 1. If a 1Gb file is to be transmitted over a 10Mbps link, how much time would it take to complete the transmission? A) 10 seconds B) 100 seconds C) 1000 seconds D) 1024 seconds 2. Which one of the

More information

CHAPTER-6 GETTING STARTED WITH C++

CHAPTER-6 GETTING STARTED WITH C++ CHAPTER-6 GETTING STARTED WITH C++ TYPE A : VERY SHORT ANSWER QUESTIONS 1. Who was developer of C++? Ans. The C++ programming language was developed at AT&T Bell Laboratories in the early 1980s by Bjarne

More information

Flipkart Placement Papers

Flipkart Placement Papers Flipkart Placement Papers 1. #include void main() int I=3,*j,**k; j=&i; k=&j; printf("%d%d%d",*j,**k,*(*k)); What is the output of the above program code? A.444 B.000 C.333 D.433 2. What is the output

More information

G52CPP C++ Programming Lecture 20

G52CPP C++ Programming Lecture 20 G52CPP C++ Programming Lecture 20 Dr Jason Atkin http://www.cs.nott.ac.uk/~jaa/cpp/ g52cpp.html 1 Wrapping up Slicing Problem Smart pointers More C++ things Exams 2 The slicing problem 3 Objects are not

More information

Q1: Multiple choice / 20 Q2: C input/output; operators / 40 Q3: Conditional statements / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10

Q1: Multiple choice / 20 Q2: C input/output; operators / 40 Q3: Conditional statements / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10 EECE.2160: ECE Application Programming Spring 2016 Exam 1 February 19, 2016 Name: Section (circle 1): 201 (8-8:50, P. Li) 202 (12-12:50, M. Geiger) For this exam, you may use only one 8.5 x 11 double-sided

More information

Text Input and Conditionals

Text Input and Conditionals Text Input and Conditionals Text Input Many programs allow the user to enter information, like a username and password. Python makes taking input from the user seamless with a single line of code: input()

More information

CC112 Structured Programming

CC112 Structured Programming Arab Academy for Science and Technology and Maritime Transport College of Engineering and Technology Computer Engineering Department CC112 Structured Programming Lecture 3 1 LECTURE 3 Input / output operations

More information

Expressions. Arithmetic expressions. Logical expressions. Assignment expression. n Variables and constants linked with operators

Expressions. Arithmetic expressions. Logical expressions. Assignment expression. n Variables and constants linked with operators Expressions 1 Expressions n Variables and constants linked with operators Arithmetic expressions n Uses arithmetic operators n Can evaluate to any value Logical expressions n Uses relational and logical

More information

COMP 250: Java Programming I. Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette

COMP 250: Java Programming I. Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette COMP 250: Java Programming I Carlos G. Oliver, Jérôme Waldispühl January 17-18, 2018 Slides adapted from M. Blanchette Variables and types [Downey Ch 2] Variable: temporary storage location in memory.

More information

AP Computer Science Unit 1. Programs

AP Computer Science Unit 1. Programs AP Computer Science Unit 1. Programs Open DrJava. Under the File menu click on New Java Class and the window to the right should appear. Fill in the information as shown and click OK. This code is generated

More information

Lecture 2. Examples of Software. Programming and Data Structure. Programming Languages. Operating Systems. Sudeshna Sarkar

Lecture 2. Examples of Software. Programming and Data Structure. Programming Languages. Operating Systems. Sudeshna Sarkar Examples of Software Programming and Data Structure Lecture 2 Sudeshna Sarkar Read an integer and determine if it is a prime number. A Palindrome recognizer Read in airline route information as a matrix

More information

NATIONAL UNIVERSITY OF SINGAPORE

NATIONAL UNIVERSITY OF SINGAPORE NATIONAL UNIVERSITY OF SINGAPORE SCHOOL OF COMPUTING TERM TEST #1 Semester 1 AY2006/2007 CS1101X/Y/Z PROGRAMMING METHODOLOGY 16 September 2006 Time Allowed: 60 Minutes INSTRUCTIONS 1. This question paper

More information

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be

More information

(Refer Slide Time 00:01:09)

(Refer Slide Time 00:01:09) Computer Organization Part I Prof. S. Raman Department of Computer Science & Engineering Indian Institute of Technology Lecture 3 Introduction to System: Hardware In the previous lecture I said that I

More information

Provided by - Microsoft Placement Paper Technical 2012

Provided by   - Microsoft Placement Paper Technical 2012 Provided by www.yuvajobs.com - Microsoft Placement Paper Technical 2012 1. Analytical 25 questions ( 30 minutes) 2. Reasoning 25 questions (25 minutes) 3. Verbal 20 questions (20 minutes) Analytical (some

More information

Professor: Sana Odeh Lecture 3 Python 3.1 Variables, Primitive Data Types & arithmetic operators

Professor: Sana Odeh Lecture 3 Python 3.1 Variables, Primitive Data Types & arithmetic operators 1 Professor: Sana Odeh odeh@courant.nyu.edu Lecture 3 Python 3.1 Variables, Primitive Data Types & arithmetic operators Review What s wrong with this line of code? print( He said Hello ) What s wrong with

More information

Sixth lecture; classes, objects, reference operator.

Sixth lecture; classes, objects, reference operator. Sixth lecture; classes, objects, reference operator. 1 Some notes on the administration of the class: From here on out, homework assignments should be a bit shorter, and labs a bit longer. My office hours

More information

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016

COMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016 COMP-202: Foundations of Programming Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016 Learn about cutting-edge research over lunch with cool profs January 18-22, 2015 11:30

More information

Sample Examination. Family Name:... Other Names:... Signature:... Student Number:...

Sample Examination. Family Name:... Other Names:... Signature:... Student Number:... Family Name:... Other Names:... Signature:... Student Number:... THE UNIVERSITY OF NEW SOUTH WALES SCHOOL OF COMPUTER SCIENCE AND ENGINEERING Sample Examination COMP1917 Computing 1 EXAM DURATION: 2 HOURS

More information

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9 Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Uppercase Alphabets Lowercase Alphabets Character Set A, B, C, Y, Z a, b, c, y, z Digits

More information

If the paper rate increases at 1.5% more than the inflation rate which is

If the paper rate increases at 1.5% more than the inflation rate which is IBM Global Sample Test PaperIBM Global Sample Test PaperHome 1. In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what

More information

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B CS1800 Discrete Structures Fall 2017 October 25, 2017 Instructions: CS1800 Discrete Structures Midterm Version B 1. The exam is closed book and closed notes. You may not use a calculator or any other electronic

More information

CS201 Latest Solved MCQs

CS201 Latest Solved MCQs Quiz Start Time: 09:34 PM Time Left 82 sec(s) Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1 While developing a program; should we think about the user interface? //handouts main reusability

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT OF MATHS, MJ COLLEGE T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,

More information

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B CS1800 Discrete Structures Fall 2017 October 25, 2017 Instructions: CS1800 Discrete Structures Midterm Version B 1. The exam is closed book and closed notes. You may not use a calculator or any other electronic

More information

Software Construction

Software Construction Lecture 1: Introduction Software Construction in Java for HSE Moscow Tom Verhoeff Eindhoven University of Technology Department of Mathematics & Computer Science Software Engineering & Technology Group

More information

Chapter 1 Introduction to Computers and Programming

Chapter 1 Introduction to Computers and Programming Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming Copyright 2003 Scott/Jones Publishing Contents 1.1 Why Program? 1.2 Computer Systems: Hardware

More information

Preprocessor Directives

Preprocessor Directives C++ By 6 EXAMPLE Preprocessor Directives As you might recall from Chapter 2, What Is a Program?, the C++ compiler routes your programs through a preprocessor before it compiles them. The preprocessor can

More information

Lesson 3: Accepting User Input and Using Different Methods for Output

Lesson 3: Accepting User Input and Using Different Methods for Output Lesson 3: Accepting User Input and Using Different Methods for Output Introduction So far, you have had an overview of the basics in Java. This document will discuss how to put some power in your program

More information

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 4 Certificate in IT SOFTWARE DEVELOPMENT

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 4 Certificate in IT SOFTWARE DEVELOPMENT BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 4 Certificate in IT SOFTWARE DEVELOPMENT Wednesday 25th March 2015 - Afternoon Time: TWO hours Section A and Section B each

More information

April 25, Lesson 8.2B

April 25, Lesson 8.2B Lesson 8.2B Content Objective: I can substitute a number in for a variable and solve for the expression I can turn word problems into expressions, equations, and inequalities and solve for the variable.

More information

PAF Chapter Comprehensive Worksheet May 2016 Mathematics Class 7 (Answering Key)

PAF Chapter Comprehensive Worksheet May 2016 Mathematics Class 7 (Answering Key) The City School PAF Chapter Comprehensive Worksheet May 2016 Mathematics Class 7 (Answering Key) The City School / PAF Chapter/ Comprehensive Worksheet/ May 2016/ Mathematics / Class 7 / Ans Key Page 1

More information

Heap Arrays. Steven R. Bagley

Heap Arrays. Steven R. Bagley Heap Arrays Steven R. Bagley Recap Data is stored in variables Can be accessed by the variable name Or in an array, accessed by name and index a[42] = 35; Variables and arrays have a type int, char, double,

More information

COP 3223 Introduction to Programming with C - Study Union - Spring 2018

COP 3223 Introduction to Programming with C - Study Union - Spring 2018 COP 3223 Introduction to Programming with C - Study Union - Spring 2018 Chris Marsh and Matthew Villegas Contents 1 Code Tracing 2 2 Pass by Value Functions 4 3 Statically Allocated Arrays 5 3.1 One Dimensional.................................

More information

Why Don t Computers Use Base 10? Lecture 2 Bits and Bytes. Binary Representations. Byte-Oriented Memory Organization. Base 10 Number Representation

Why Don t Computers Use Base 10? Lecture 2 Bits and Bytes. Binary Representations. Byte-Oriented Memory Organization. Base 10 Number Representation Lecture 2 Bits and Bytes Topics! Why bits?! Representing information as bits " Binary/Hexadecimal " Byte representations» numbers» characters and strings» Instructions! Bit-level manipulations " Boolean

More information

Data Types & Variables

Data Types & Variables Fundamentals of Programming Data Types & Variables Budditha Hettige Exercise 3.1 Write a C++ program to display the following output. Exercise 3.2 Write a C++ program to calculate and display total amount

More information

OBJECTIVE QUESTIONS: Choose the correct alternative:

OBJECTIVE QUESTIONS: Choose the correct alternative: OBJECTIVE QUESTIONS: Choose the correct alternative: 1. Function is data type a) Primary b) user defined c) derived d) none 2. The declaration of function is called a) function prototype b) function call

More information

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities INTERNAL ASSESSMENT TEST 1 SOLUTION PART 1 1 a Define algorithm. Write an algorithm to find sum and average of three numbers. 4 An Algorithm is a step by step procedure to solve a given problem in finite

More information

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming 1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to Computing and Programming with Java: A Multimedia

More information

Computer Algorithms-2 Prof. Dr. Shashank K. Mehta Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Computer Algorithms-2 Prof. Dr. Shashank K. Mehta Department of Computer Science and Engineering Indian Institute of Technology, Kanpur Computer Algorithms-2 Prof. Dr. Shashank K. Mehta Department of Computer Science and Engineering Indian Institute of Technology, Kanpur Lecture - 6 Minimum Spanning Tree Hello. Today, we will discuss an

More information

EEL 3801 Introduction to Computer Engineering Summer Home Work Schedule

EEL 3801 Introduction to Computer Engineering Summer Home Work Schedule EEL 3801 Introduction to Computer Engineering Summer 2005 Home Work Schedule Schedule of Assignments: Week HW# Due Points Title 1 07/05/05 3% Memory dump in assembly 2 07/19/05 3% Solve a Maze 3 08/02/05

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

Section 2.2 Your First Program in Java: Printing a Line of Text

Section 2.2 Your First Program in Java: Printing a Line of Text Chapter 2 Introduction to Java Applications Section 2.2 Your First Program in Java: Printing a Line of Text 2.2 Q1: End-of-line comments that should be ignored by the compiler are denoted using a. Two

More information

Introduction to Java Unit 1. Using BlueJ to Write Programs

Introduction to Java Unit 1. Using BlueJ to Write Programs Introduction to Java Unit 1. Using BlueJ to Write Programs 1. Open up BlueJ. Click on the Project menu and select New Project. You should see the window on the right. Navigate to wherever you plan to save

More information