Академический Документы
Профессиональный Документы
Культура Документы
SUB-COMPUTER SCIENCE
(c) What is job scheduling or CPU scheduling? Differentiate between preemptive and non-preemptive scheduling.
3
(b) Find the eight bit two’s complement form of the following decimal numbers:- 1x2= 2
(e) What are the shortcomings of Procedural and Modular Programming Approaches? 2
(b) What are Literals? Explain all kind of literals provided in C++. 4
(c) Write a C++ program to enter radius of a circle and prints its area. 3
(d) What is the role of compiler in C++? Explain all type of Errors in C++ with suitable examples. 3
(e) What are data types? Discuss fundamental data types of C++. 3
(f) Which header file(s) are essentially required to be included to run/execute the following C++ code. 2
void main()
int last=25;
for(int c=9;c<=last;c++)
cout<<c<<”:”<<sqrt(c)<<endl;
6. (a) What are data type modifiers? Explain all kind of modifiers and their significance. 2
(c) What do you understand by dynamic initialization of a variable? Explain using a suitable example program
(d) Differentiate between implicit and explicit type conversion using suitable examples. 2
(f) Write a C++ Program that accepts 3 integers and find the largest among those integers using logical and
relational operators. 4
(g) Differentiate between postfix and prefix version of increment & decrement operators with suitable 2
examples.
7. (a) Write a C++ program that accepts an integer number between 5 to 20 and prints the multiplication table
of this number. 4
(b) Write a C++ program to input Principal amount and Time. If Time is more than 10 years calculate the
Simple Interest with rate 8%, otherwise calculate it with rate 12% per Annum. 3
#include<iostream.h>
#include<conio.h>
void main()
int i=100;
while(i>0)
{ cout<<i-10;<<endl;
getch();
(d) Write a C++ program that accepts an integer and check whether it is even or odd. 2
int ch=20;
cout<<++ch<<”\n”<<ch;