[go: up one dir, main page]

0% found this document useful (0 votes)
78 views8 pages

PES 1st PU Program Lists and Instructions (Science)

The document provides instructions for a 1st PUC Computer Science practical examination. It outlines a 2 hour duration with 30 total marks. Marks are distributed across writing C++ programs (6 marks), writing spreadsheet or web design programs (6 marks), executing a program (6 marks), output display and writing (2 marks), a practical record (6 marks), and a viva voce (4 marks). The practical record must be submitted. Viva voce questions will be simple and related to the student's program. The document lists 10 C++ programs, 3 spreadsheet programs, and 2 web design programs that students can choose from for the exam. It also provides 55 sample viva voce questions and answers related to C++ and

Uploaded by

Adrenq Quandrent
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views8 pages

PES 1st PU Program Lists and Instructions (Science)

The document provides instructions for a 1st PUC Computer Science practical examination. It outlines a 2 hour duration with 30 total marks. Marks are distributed across writing C++ programs (6 marks), writing spreadsheet or web design programs (6 marks), executing a program (6 marks), output display and writing (2 marks), a practical record (6 marks), and a viva voce (4 marks). The practical record must be submitted. Viva voce questions will be simple and related to the student's program. The document lists 10 C++ programs, 3 spreadsheet programs, and 2 web design programs that students can choose from for the exam. It also provides 55 sample viva voce questions and answers related to C++ and

Uploaded by

Adrenq Quandrent
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Computer Science Practical Examination

1st PUC Practical Examination 2022 - 2023

General Instructions:
 Duration of practical examination: 2 Hrs.
 Maximum marks allotted: 30

Marks Distribution

SL. Marks
Particulars
NO. Distribution
1 Writing of C++ program 6

2 Writing of Part – B or Part – C 6

3 Execution of any 1 program 6

4 Display and writing of output 2

5 Practical Record 6

6 Viva – voce 4

Note: Submission of practical record is mandatory.

Viva – voce:
1. Four questions will be asked and each question carries 1 marks.
2. The questions in the viva – voce should be simple, direct and related to the program to
perform by student.
P. E. S. PU COLLEGE, BSK – I stage, Bangalore - 50
1st PUC Computer Science [Science]

Lab Program List for Annual Exam 2022 – 2023

Part – A (C++ Program)


1. Write a program to interchange the values of two variables
a. Using a third variable.
b. Without using a third variable.

2. Write a program to find the area and circumference of a circle.


3. Write a program to find the area of a triangle given three sides.
4. Write a program to convert days into years, months and days.
5. Write a program to find the largest, smallest and second largest of three numbers
using simple if.
6. Write a program to check whether a given year is a leap year or not using if-else.
7. Write a program to input the marks of four subjects, calculate the total percentage and
output the result as either “First class”, or “Second class”, or “Pass class” or “Fails”
using switch statement.
8. Write a program to find the sum of all the digits of a number using while statement.
9. Write a program to find the factorial of a number using for statement.
10. Write a program to find the sum and average of “N” numbers using array.

Part – B (Spreadsheet Practical List)

1. Eight salesmen sell three products for a week. Using a spreadsheet create a sales
report. The report should include the name of the salesman, Amount of sales for each
product and the salesman’s total sales in the format given below.

2. Enter the following details for 10 employees Employee Code, Employee name, Basic
salary, DA, HRA, Loans, Total salary and Tax.

3. Enter the following details for 20 students Register number, Name, Subject1,
Subject2, Subject3, Subject 4 marks, Total Marks and Percentage.

Part – C (Web Designing Programs)

1. Create a web page to display your details using different tags.

2. Create a model web site for your college making use of different tags.
VIVA QUESTIONS AND ANSWERS

SECTION A: C++

1. Who developed C++?


Bjarne Stroustrup.

2. What are the concepts of OOP?


Class, object, Data abstraction, data encapsulation, polymorphism, inheritance, Message
passing and dynamic binding.

3. Define an object.
An object is real time entity or instance of a class.

4. Define class.
A class is user defined data type which holds data members and member functions
common to all objects. OR Class is a blue print from which individual objects are created.

5. Mention simple data types?


Int , float, char, double, void, bool

6. Name the header file which includes input output function?


#include<iostream.h>

7. What does void indicate?


void is used when the function is not returning any value.

8. What is manipulators?
Manipulators are type of operators which is used with insertion operator to manipulate or
format output.

9. Which are the different manipulators used in C++?


Endl, setw( ) ,setfill( ) ,setprecision( ).

10. Name the header file which includes manipulator in C++?


#include<iomanip.h>

11. Mention size of following data type:


Int 2 bytes
Float 4 bytes
Char 1 byte
Double 8 bytes

12. How do you declare a variable? Data-type variable_name;

13. What are the different arithmetic operators?


+, -, *, /, %
14. What is the difference between / and % ?
a. /- is division operator and gives quotient.
b. %- is a modulo operator which gives remainder.

15. What is the purpose of endl?


Endl means end a line.

16. What is the other name for cin? Stream extraction/get from.
17. What is the other name for cout? Stream insertion/put to.

18. What is the various control statement?


Selection, iteration/looping and jumping statements.

19. List the various selection statements?


If, if-else, nested-if, if-else-if, and switch.

20. Mention the relation operators?


<, >, <=, >=, !=, ==

21. Gives the syntax of simple-if statement?


If(condition)

Statement 1;

22. What is type casting?


Converting one type of data into other type of data.

23. List the types of type casting.


Explicit and implicit type casting.

24. Mention the type of logical operations?


AND[&&], OR[||], NOT[!].

25. What is the difference between “=” & “==”?


= is an assignment operator for assigning a value or expression and

= = is a relation operator for comparing two operands.

26. Give an example for character constant?


‘a’ or ‘9’ or ‘+’.

27. What does a character set include?


Alphabets[a to z and A to Z] ,digits[0 to 9] ,special characters[* , . / > < and blank space].

28. How many characters are there in C++ ?


256.

29. What is a nested-if statement?


An if statement within another if statement is called nested-if statement.

30. Define keyword.


Pre-defined reserved words with special meaning.
31. List the keywords.
void, int , float ,if else ,etc.

32. What is the other name given for nested-if statement?


If-else-if or else-if ladder.

33. What is ++ operator called as? Increment unary operator.

34. What is purpose of switch statement?


Switch is multiple selection construct used to choose among multiple alternatives.

35. What are the values the switch expression can take?
int constant/variable or char constant/variable.

36. What is an array?


An array is ordered collection of elements of same type and same name.

37. What are different types of array?


One–dimensional, two-dimensional, multi-dimensional arrays.

38. How are array elements accessed?


Array elements are accessed using subscript or index.

39. Mention any one feature of array subscript.


It should positive integer constant.

40. What are the other names of :

While Pre tested or entry controlled loop


loop
Do- Post tested or exit controlled loop
while
For Fixed execution loop

41. What is a function?


Function is a subprogram which performs a specific task and returns a single value to
main program.

42. What is the use of return statement?


It is used to return or sent the control or result back to calling program.

43. What is function prototype?


Declaration of function before it is used is called function prototype.

44. Mention any one use of functions.


*It decreases the lines of code.
*Reusability
*Divides complex problem into small sub problem which is easy to implement.
45. What are actual arguments?
Arguments associated with function call are called actual arguments.

46. What are formal arguments?


Arguments associated with function header are called formal arguments.

47. How is function invoked?


Function is invoked using function call.

48. Can function have more than one return statement?


Yes, function has more than one return statement.

49. Can a function return more than one value?


No, function cannot return more than one value.

50. Define cascading?


Multiple uses of stream extraction (<<) and stream insertion (>>) in a single input and
output statement is called cascading of input and output operators.

51. Difference between break and exit( ).


Break is jump statement which terminates the loop.

Exit( ) is function defined in stdlib.h which terminated the program.

52. What is a string?


Sequence of characters is called a string.

53. What is significance of NULL character in string?


A null character signifies end of string.

54. Difference between get and getline function.


Get –accepts sequence of characters including blank space.

Getline –accepts sequence of characters until newline character is encountered.

55. Give the function of following:


Strlen( ) Finds length of string
Strcat( ) Joins two strings
Strcmp( ) Compares two strings
Strrev( ) Reverse the string
Strlwr( ) Covert uppercase to lower case
Strcpy( ) Copies from string2 to string1
Isalpha( ) Checks whether input character is alphabet or not
Isdigit( ) Checks whether input character is digit or not
Isupper( ) Checks whether input character is uppercase letter or not
Toupper( ) Covert lowercase to uppercase
SECTION B: MS-EXCEL

1. What is a cell?
Intersection of rows and columns

2. How many rows and columns are there in spread sheet?


Rows=10, 48, 576 and Columns=A to XFD

3. What is an active cell?


Present cell in which user is working is called active cell.

4. What is the extension of MS-Excel?


filename.xlsx

5. Which sign is used to begin a formula in excel?


= (equal to) sign

6. List the different types of alignments used in formatting.


Right, left, center and justify.

7. List any 2 mathematical functions.


sum( ) , sqrt()

8. List any 2 statistical functions.


max( ), min( ), avg( ), small( )

9. List types of charts.


Bar, column, line, pie

10. List two date and time functions.


Today( )- returns current date, Now( ) –returns current date and time.

11. Mention shortcut keys:

Function Shortcut key


Open new Ctrl + N
Close Alt + F4
Save Ctrl + S
Copy Ctrl + C
Cut Ctrl + X
Paste Ctrl + V
Select All Ctrl + A
Undo Ctrl + Z
Redo Ctrl + Y
Hyperlink Ctrl + K
Align Left Ctrl + L
Align center Ctrl + E
SECTION C – HTML

1. Expand HTML.
Hyper Text Markup Language.

2. What is use of HTML?


It is used to create a webpage.

3. What is extension of HTML?


filename.html

4. How many levels of heading tags are supported in HTML?


Six levels from H1 to H6.

5. What are the different list tags?


Ordered list (numbered), Unordered list (unnumbered), Definition list

6. What is the different text editors used to write HTML?


Notepad and WordPad

7. Mention any two formatting tags.


<b> , <i>, <u> , <center>

8. What are the attributes of body tag?


<bgcolor> and <text>

9. Mention any two container tags.


<b> text </b>, <center> text </center>

You might also like