CS 16 – FUNDAMENTALS OF COMPUTING AND PROGRAMMING (Regulation 2008) Time: Three hours Maximum: 100 Marks Answer ALL questions PART – A (10 X 2 = 20 marks) (1) Why computer is known as data processor? (2) What is cache
Premium Computer Binary numeral system
Randi Reynolds Chapter 10 PT1420 True or False 1) When working with a sequential access file‚ you can jump directly to any piece of data in the file without reading the data that comes before it. False 2) In most languages‚ when you open an output file and that file already exists on the disk‚ the contents of the existing file will be erased. True 4) The purpose of an EOF marker is to indicate where a field ends. Files typically contain several EOF markers. False 5) When an input file is opened
Premium Programming language Number Count
1. Calculate real GDP for 2004 and 2005 using 2004 prices. To calculate the real GDP we use the constant price for 2004 which was $20. Real GDP (base year 2004) 2004 ($20 per CD x 100 CD’s) + ($110 per racquet x 200 racquets) = 24000 2005 ($20 per CD x 120 CD’s) + ($110 per racquet x 210 racquets) = 25500 By what percentage did real GDP grow? Because the Real GDP was $24000 in 2004 and $25500 in 2005‚ real GDP grew by ($25500 - $24000) / $24000 = 0.0625 or 6.25% 2. Calculate the
Premium Gross domestic product Economic growth Economics
(Give any one set to each student randomly) Set- 1 Write a program to print “ Welcome to Java Programming” on the screen public class welcome { public static void main (String args[]) { System.out.println("Welcome to Java programming"); } } Using a case statement‚ write a shell program to read a command (eg.‚ who‚ cal‚ ls‚ ps) from the user and execute it. echo "let me know what you want to do" while : a=0; do echo "1 : who command 2: cal command 3: ls command 4 :
Premium File system File system permissions
1) Shell Program To check the greater number between two numbers #!/bin/sh [sourcecode language=’sh’] echo Enter a Number read num1 echo Enter Number read num2 if test $num1 -ge $num2 then echo $num1 is greater than $num2 else echo $num2 is greater than $num1 fi 2) Shell Program to Check a number is even or odd [sourcecode language=’sh’] echo Enter a Number to Find Even or odd read num b=`expr $num % 2` if [ $b -eq 0 ] then echo Even number else echo Odd Number fi 3) Shell
Premium Programming language
Programming Solution Proposal Crystal Wright PRG/210 September 19‚ 2011 Christopher Stott Programming Solution Proposal “New York Freelance Technology is a web based organization affiliated with Montana Freelance Technology and GMR Web Services that continues to give you quality hosting at an affordable cost.” (New York Freelance Technology‚ 2011) Not only does NY Freetech perform web specific tasks‚ they also handle numerous person to person tasks such as custom computer building‚ videography
Premium Customer service World Wide Web File system
History of Programming Languages To date‚ there have been two conferences focusing on programming languages. The Special Interest Group on Programming Languages (SIGPLAN) of the Association for Computing Machinery sponsored two "History of Programming Languages (HOPL)" conferences. The first of these took place in Los Angeles in 1978‚ and focused on thirteen early languages: ALGOL‚ APL‚ APT‚ BASIC‚ COBOL‚ FORTRAN‚ GPSS‚ JOSS‚ JOVIAL‚ LISP‚ PL/I‚ SIMULA‚ and SNOBOL. The prospectus for the first
Premium Programming language
Taylor Gray 1/31/11 POW 6: linear nim For this game of Linear Nim you draw 10 line marks on a piece of paper and two players take turns crossing off only 1‚ 2‚ or 3 marks per turn. The person who crosses off the last mark is the winner. Firstly what I did was play a few games with my Mom and what I realized right away was that if you stopped just before the last four dashes in the game then you would always win. Since you aren’t always guaranteed of being the one who can put these dashes
Premium Optics Mathematics Mirror
Object-Oriented Programming School of Computer Science University of KwaZulu-Natal February 5‚ 2007 Object Oriented Programming using Java Notes for the Computer Science Module Object Oriented Programming COMP200 Adapted from Introduction to Programming Using Java Version 5.0‚ December 2006 by David J. Eck http://math.hws.edu/javanotes/ Adapted by Anban Pillay School of Computer Science University of KwaZulu-Natal Durban February 2007 3 4 Contents 1 Introduction to Objects
Premium Object-oriented programming Unified Modeling Language
Introduction to Linear Regression and Correlation Analysis Goals After this‚ you should be able to: • • • • • Calculate and interpret the simple correlation between two variables Determine whether the correlation is significant Calculate and interpret the simple linear regression equation for a set of data Understand the assumptions behind regression analysis Determine whether a regression model is significant Goals (continued) After this‚ you should be able to: • Calculate and
Premium Regression analysis Linear regression