0% found this document useful (0 votes)
7 views15 pages

Computer-2nd Year Guess Paper

The document contains a series of objective questions related to computer programming, specifically focusing on C language concepts, data types, control structures, and database management. Each question presents multiple-choice answers, testing knowledge on programming syntax, functions, and database components. It serves as an assessment tool for students in their 2nd year of computer studies at Stars College of Science & Commerce for Girls, Multan Campus.

Uploaded by

basitajmal36
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)
7 views15 pages

Computer-2nd Year Guess Paper

The document contains a series of objective questions related to computer programming, specifically focusing on C language concepts, data types, control structures, and database management. Each question presents multiple-choice answers, testing knowledge on programming syntax, functions, and database components. It serves as an assessment tool for students in their 2nd year of computer studies at Stars College of Science & Commerce for Girls, Multan Campus.

Uploaded by

basitajmal36
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/ 15

STARS COLLEGE OF SCIENCE & COMMERCE

FOR GIRLS MULTAN CAMPUS

COMPUTER 2 nd Year
OBJECTIVE
Q.No.1
(1) The case block ends with:
(a) end select (b) end case (c) break (d) case else
(2) Every c program must have:
(A) Scanf function (b) Getche function (c) Main function (d) Print function
(3) The escape sequence for new line:
(A) \ n (b) \t (c) \b (d) \f
(4) Turbo C++ can compile:
(a) assembly program (b) C++ program only (c) machine program (d) c & c++ program
(5) A loop within a loop is a called:
(a) double loop (b) dual loop (c) complete loop (d) nested loop
(6) The output of compiler is called:
(a) library code (b) source code (c) linked code (d) object code
(7) Function prototype for build in functions are specified in:
(a) source file (b) object file (c) header file (d) image file
(8) Void occupy how many bytes in memory?
(a) zero (b) one (c) two (d) four
(9) Variables are created in:
(a) rom (b) cache (c) ram (d) hard disk
(10) Which part of loop executed only one:
(a) condition (b) Increment (c) initialization (d) decrement
(11) Which is a valid character constant?
(a) A (b) ‘ Hello ’’ (c) ‘6’ (d) =
(12) Which programming structure executes program statement in – order?
(a) sequence (b) repetition (c) decision (d) relation
(13) The condition operator is an alternative of:
(a) If (b) if – else (c) nested – if (d) none
(14) This statement is to cause a loop to terminate early:
(a) break (b) terminate (c) exit (d) end
(15) A special value that makes the end of a list of input data is called:
(a) terminal value (b) sentinel value (c) loop control value (d) input value

(16) Pre-processor directives are command for?


(a) Microprocessor (b) Language Processor
(c) C Pre-Processor (d) Loader
(17) The Extension of C program file is:
(a) .txt (b) .obj
(c) .h (d) .c
(18) Variable and constant name cannot contain:
(a) Number (b) Underscore
(c) Letter (d) Period
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(19) Which of the following is equivalent to (p>=q)?
(a) p < q (b) ! (p < q)
(c) p > q (d) ! p <q
(20) Which of the following operator has lowest precedence?
(a) ! (b) +
(c) = (d) = =
(21) The function getch() is defined in
(a) Stdio.h (b) Conio.h
(c) String.h (d) Math.h
(22) Which of the following is valid case statement in a switch statement:
(a) Case 1: (b) Case x < 1:
(c) Case x > 1: (d) Case 1.5:
(23) Which is not a loop construct.
(a) do-while (b) If-else
(c) for (d) While
(24) The last statement of each case block in switch structure must be:
(a) Default (b) If-else
(c) Break (d) else
(25) Which of the following things are determined by format specifier?
(a) Data type (b) Format of the value
(c) Field width (d) All of these
(26) The .exe file is produced by:
(a) Linker (b) Loader
(c) Compiler (d) Interpreter
(27) The value of C expression 9/5*2 is:
(a) 3.6 (b) 0.9
(c) 0 (d) 2
(28) Which short key is used to view output screen?
(a) Alt + F1 (b) Alt + F3
(c) Alt + F5 (d) Alt + F7
(29) Escape sequence \\ is used to print:
(a) New line (b) backslash
(c) Space (d) Tab
(30) The number of bytes used by long double data type is:
(a) 4 (b) 8
(c) 10 (d) 12

(31) The expression in define directive:


Can only be changed at the end of the
(a) (b) Cannot be changed can be redefined
program
(c) Cannot be assigned a value (d) Cannot be changed
(32) The .exe file is produced by:
(a) Linker (b) Loader
(c) Executing (d) Saving
(33) Which part of the compiler handles the preprocessor directive?
(a) Supervisor (b) Shell
(c) Processor (d) preprocessor
(34) What does the # sign indicate in an instruction of c language?
(a) Instruction for programmer (b) Instruction for linker
(c) Instruction for compiler (d) Instruction for loader
(35) Which of the following is not a valid identifier?
(a) return (b) MyInt
(c) Myinteger (d) Total
(36) The expression 0%4 has a value equal to:
(a) 4 (b) 1
(c) 2 (d) 0
(37) Which of the following data type is used to store “string”?
(a) Char (b) Float
(c) String (d) Double
(38) The logic not operator, denoted by ! is a:
(a) Ternary operator (b) Binary operator
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(c) Unary operator (d) Bitwise operator
(39) Getch ( ) function is used to input following number of character(s):
(a) 1 (b) Many
(c) 2 (d) 3
(40) ASCII code for a character is displayed using format specifier:
(a) %d (b) % f
(c) %c (d) % x
(41) Which programming structure makes a comparison?
(a) Relation (b) Decision
(c) repetition (d) Sequence
(42) Another term for conditional operator is:
(a) Ternary (b) Binary
(c) Byte (d) Unary
(43) The semi colon is placed at the end of condition in:
(a) While loop (b) do-while loop
(c) do loop (d) For-Next loop
(44) Which of the following operator is used after label in goto statement?
(a) Comma (b) Colon
(c) Semi colon (d) Dot
(45) The last statement of each switch statement must be:
(a) default (b) If-else
(c) Break (d) Else
(46) Which statement cause a loop to terminate early:
(a) break (b) Terminate
(c) exit (d) Stop
(47) What is the final value of i after executing the code: for (int i=1; i<5; i+=2)
(a) 7 (b) 5
(c) 6 (d) 9
(48) The keyword ‘break’ cannot be used within:
(a) do-while (b) If-else
(c) for (d) While
(49) There are ______________expressions in for loop statement:
(a) Two (b) Three
(c) Four (d) Five
(50) which statement is used to move the control to the start of a loop body?
(a) Break (b) Continue
(c) Default (d) Switch

(51) Function prototype for bult – in functions are specified in:


(a) Source file (b) Header file
(c) Object file (d) Image file
(52) Global variables are created in:
(a) Hard disk (b) RAM
(c) ROM (d) Cache
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(53) A database consists of various components called the:
(a) Tool (b) Properties
(c) Entities (d) Object
(54) In relational model, _____ is the basic structure in which data is stored:
(a) Attribute (b) Record
(c) Table (d) Form
(55) Which of the following is least flexible?
(a) Network data model (b) Hierarchical data model
(c) Relational data model (d) object data model
(56) Organizing the database in computer disk storage is done in:
(a) Logical design (b) Physical design
(c) Analysis (d) Implementation
(57) All the hardware costs are considered during:
(a) A project planning (b) Requirement analysis
(c) Feasibility study (d) Data analysis
(58) Data base development process involve mapping of conceptual data model into:
(a) Hierarchical data model (b) Implementation model
(c) Network data model (d) Object oriented data model
(59) ____ is not hold uniqueness?
(a) Foreign (b) Candidate
(c) Primary (d) Secondary
(60) In hybrid distribution, which kind of fragments are stored at only one site:
(a) Critical fragments (b) Dependent table
(c) Non critical fragments (d) Only large fragment
(61) Pre-processor directives are command for?
(a) Microprocessor (b) Language Processor
(c) C Pre-Processor (d) Loader
(62) The Extension of C program file is:
(a) .txt (b) .obj
(c) .h (d) .c
(63) Variable and constant name cannot contain:
(a) Number (b) Underscore
(c) Letter (d) Period
(64) Which of the following is equivalent to (p>=q)?
(a) p < q (b) ! (p < q)
(c) p > q (d) ! p <q
(65) Which of the following operator has lowest precedence?
(a) ! (b) +
(c) = (d) = =
(66) The function getch() is defined in
(a) Stdio.h (b) Conio.h
(c) String.h (d) Math.h
(67) Which of the following is valid case statement in a switch statement:
(a) Case 1: (b) Case x < 1:
(c) Case x > 1: (d) Case 1.5:
(68) Which is not a loop construct.
(a) do-while (b) If-else
(c) for (d) While
(69) The last statement of each case block in switch structure must be:
(a) Default (b) If-else
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(c) Break (d) else
(70) Which of the following things are determined by format specifier?
(a) Data type (b) Format of the value
(c) Field width (d) All of these
(71) The .exe file is produced by:
(a) Linker (b) Loader
(c) Compiler (d) Interpreter
(72) The value of C expression 9/5*2 is:
(a) 3.6 (b) 0.9
(c) 0 (d) 2
(73) Which short key is used to view output screen?
(a) Alt + F1 (b) Alt + F3
(c) Alt + F5 (d) Alt + F7
(74) Escape sequence \\ is used to print:
(a) New line (b) backslash
(c) Space (d) Tab
(75) The number of bytes used by long double data type is:
(a) 4 (b) 8
(c) 10 (d) 12

(76) Which wildcard replaces one character only?


(a) . (b) :
(c) ? (d) !
(77) Which types of forms useful to display data from tables and queries that have one to many relationships?
(a) Sub form (b) Main form
(c) Multi form (d) Inserted form
(78) Which of the following is not an objective of DBMS?
(a) Shareability (b) Evolvability
(c) Availability (d) Feasibility
(79) Create command is used to create:
(a) Record (b) View
(c) Report (d) Query
(80) Which of the following is an example of one-to-one relationship?
(a) Student registration number (b) Person automobile
(c) Mother – daughter (d) Person – phone number
(81) No attribute of a primary key should contain null values:
(a) Data integrity (b) Entity integrity
(c) Referential integrity (d) Null integrity
C-LANGUAGE
(82) All of the following are control statements except:
(a) Sequential (b) Repetition
(c) Selection (d) Relation
(83) The semicolon is placed at the end of condition in:
(a) While loop (b) Do-while loop
(c) Do loop (d) For next loop
(84) The scope of a variable refers to its:
(a) Length (b) Name
(c) Accessibility (d) Data type
(85) Which short key is used to view output screen?
(a) Alt + F1 (b) Alt + F3
(c) Alt + F5 (d) Alt + F7
(86) The logical not operator, denoted by! is a
(a) Unary operator (b) Binary operator
(c) Ternary operator (d) Bit wise operator
(87) The output of a compiler is called:
(a) Library code (b) Source code
(c) Linked code (d) Object code
(88) The variable names cannot contain a(n):
(a) Number (b) Underscore
(c) Letter (d) Period
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(89) The expression 10% 3 has a value equal to:
(a) 1 (b) 2
(c) 3 (d) 4
(90) The escape sequence used to begin a new line in C-language:
(a) \n (b) \n
(c) \b (d) \m
OR
VISUAL BASIC
(91) We can hide a tool window automatically with:
(a) Select auto hide (b) Close button
(c) End (d) Break
(92) Which method loads a form in memory and displays it on screen:
(a) Load (b) Unload
(c) Show (d) Lock
(93) The method uses for object’s:
(a) Style (b) Behaviour
(c) Value (d) Appearance
(94) Data can be entered in a control when it has:
(a) Mask (b) Control
(c) Charged (d) Focus
(95) The data type that can handle decimal places is:
(a) Short (b) Double
(c) Integer (d) Boolean
(96) The option that forces declaration of all variables is:
(a) Implicit (b) Option explicit
(c) Shell (d) forced
(97) The modulus operator is used for:
(a) Multiplication (b) Division
(c) Remainder (d) Range
(98) A comment is proceed by:
(a) Apostrophe (b) Parenthesis
(c) Comma (d) Semi colon
(99) A file restored in:
(a) RAM (b) Hard Disk
(c) ROM (d) Cache
(100) Which form of dependency is removed in 2NF?
(a) Functional (b) Transitive
(c) Associative (d) Partial
(101) The data in table is entered in:
(a) Desing view (b) Normal view
(c) Data sheet view (d) Layout view
(102) How many are the layout of the form?
(a) 2 (b) 3
(c) 4 (d) 5
(103) Which auto form displays one record data time:
(a) Tabular (b) Justified
(c) Columnar (d) Datasheet
(104) Which data type is the default type?
(a) Memo (b) Number
(c) Text (d) Auto number
(105) The default field size of a text data type field is:
(a) 2 (b) 5
(c) 20 (d) 50
C-LANGUAGE
(106) Which of the following is a valid character constant?
(a) A (b) ‘@’
(c) “C” (d) //
(107) Conditional operator is an alternative of:
(a) if (b) if – else
(c) switch (d) for
(108) In C program, the number of columns that are printed are specified in:
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(a) Format specifier (b) Field width specifier
(c) Formatting integer (d) Both a and b
(109) The function getch ( ) is defined in:
(a) Stdio.h (b) Conio.h
(c) String.h (d) Math.h
(110) A loop within a loop is called:
(a) Nested loop (b) Complex loop
(c) Infinite loop (d) Dual loop
(111) Total number of key words in c is:
(a) 30 (b) 32
(c) 34 (d) 36
(112) How many kinds of control structures are there to organize program instructions:
(a) 3 (b) 2
(c) 4 (d) 5
OR
VISUAL BASIC
(113) We can hide a tool window automatically with:
(a) Select auto hide (b) Close button
(c) End (d) Break
(114) Which method loads a form in memory and displays it on screen:
(a) Load (b) Unload
(c) Show (d) Lock
(115) The method uses for object’s:
(a) Style (b) Behaviour
(c) Value (d) Appearance
(116) Data can be entered in a control when it has:
(a) Mask (b) Control
(c) Charged (d) Focus
(117) The data type that can handle decimal places is:
(a) Short (b) Double
(c) Integer (d) Boolean
(118) The option that forces declaration of all variables is:
(a) Implicit (b) Option explicit
(c) Shell (d) forced
(119) The modulus operator is used for:
(a) Multiplication (b) Division
(c) Remainder (d) Range
(120) A comment is proceed by:
(a) Apostrophe (b) Parenthesis
(c) Comma (d) Semi colon
(121) A file restored in:
(a) RAM (b) Hard Disk
(c) ROM (d) Cache

SUBJECTIVE
1. State the purpose of defining per-processor directive.
2. What do you mean by delimiters?
3. What do you mean by machine independence?
4. What is the purpose of linker in C language?
5. Trace Errors
char ch1 = a
char ch2 = b
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
(ch1 ≠ ch2)
6. Differentiate b/w pre – processor directive and header file.
7. Why the logical error is the most difficult error?
8. What is the use of main ( ) function in C?
9. How program logic implemented in structured programming language and why it is error prone?
10. Write any two rules for naming a variable.
11. Differentiate between declaring and deleting a variable.
12. Trace the error
Int a = 6
++a;
printf (“ % f ’, a)
13. Trace the output
float a = -17.245;
printf (“ % 8.3f ” , a);
14. Trace error from the following
# include < stdio.h >;
Void main ( )
{
int x = 5
10 + 5 = x;
15. How string value displayed in C language?
16. Describe the use of comment in C language.
17. How executable file is created?
18. Write the use of printf function write its syntax.
19. Define standard output.
20. Trace the output
Void main ( )
{
printf (“55/t” );
printf (“666”);
printf (“ /n 777”);
}
21. Predict the output
int price = 10;
if (price! = 10;
price = 0;
else
price * = 20;
printf (“%d” , price);
22. Describe sentinel loop.
23. Trace the output
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
Int k;
for (k = 0 ; k < = 5 ; k + = 4)
printf (“% d” , k);
24. Why a default Label used in switch statement?
25. Define compound statement and write its example.
26. Predict the output of the following code
int a = 9;
if (a%2 = = 0)
printf (“Even”);
else
printf (“odd”);
27. Differentiate between if – else & switch statement.
28. What is Compiler.
29. What is garbage value?
30. List any four types of integer data in C language.
31. What is relational operator?
32. Trace the error
#include<stdio.h>
Void main()
{
Printf(“High Programming Language”)
}
33. Trace the output of the following:
x=5;
y=x++;
printf(“%d%d”,x,y);
34. What are the advantages of C Language.
35. What is the use of printf() function?
36. Define Conditional loop.
37. Discuss the role of \b.
38. What is variable deceleration.
39. How Interpreter works?
40. What happens if break is missed in case block?
41. What is format specifier?
42. Determine the output
If(1 == 2)
printf(“PUNJAB”);
else
printf(“KPK”);
43. Define the term machine independence.
44. Why the logical error is most difficult error
45. Differentiate b/w String constant and character Constant?
46. What is identifier? Give an example
47. Define Compound assignment statement.
48. Write down output of the following:
if (2 % 3 > = 1)
printf(“good”);
else
printf(“bad”);
49. What is language processor?
50. Define preprocessor directive and write tis two uses.
51. Define syntax error with example.
52. Differentiate between linker and loader.
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
53. What is the use of turbo C++ ?
54. How the program logic is implemented in structured programming language?
55. Define standard identifier and give some examples.
56. Define keyword with example.
57. Write the use of operators.
58. Initialize three variables T1, T2, T3 in a single line by assigning values 48, 45 and 39 respectively.
59. What is arithmetic expression?
60. Define compound assignment statement.
61. Wha is the output of: printf(“%C”, 67);
62. Pedict the output
int x = 7;
int y = 3;
printf (“%d and %d, x y , x%y);
63. Determine output -0.007 %8.5f
64. Describe format specifier.
65. Why is c strongly typed language?
66. Define while loop.
67. Predict the output:
int a=1,b=5;
if((a+b)<6)
printf (“%d”,b);
printf (“%d”,a+b);

68. Convert the given program in do-while loop

int i;
for(i=3;i<=39;i+=6)
printf(“%d\n”,i)

69. Write he following expression in C:


W is either equal to 6 or not greater than 3.

70. Distinguish b/w break and continue statement used in loop.


71. Why is sentinel value used in loop?
72. Define goto statement.
73. Trace the output of the following code:

int n=10;
(x%2==0? printf(“even”):printf(“odd”))

74. Write two situations in which sentinel-controlled loop is used.


75. Write any two uses of loop.
76. Determine the output of the following code
m is 3 and n is 5
for(k=n; k>0; --k)
{
for(j=m; j>0; --j)
{
printf(“*”);
}
printf(“\n”);
}
77. Write down the syntax of “do-while” loop.
78. Differentiate between if-else and switch statement.
79. What is the use of switch statement.
80. Write the syntax of if-else statement.
81. Determine the output of following code:
int x=10;
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
switch(x)
{
case 5:
printf(“five is given”);
default:
printf(“other”);
}
82. Write the flow diagram of for loop.
83. What is an entity? Give an example.
84. List any four components of physical database design.
85. Write the responsibilities of data administrator.
86. List any two properties of relation.
87. Define synonym.
88. Define DBMS.
89. What is meant by feasibility study in database design process?
90. How would you differentiate between tables and views?
91. How would present the concept of data volume and usage analysis in physical database design?
92. Differentiate between candidate and alternate keys.
93. List different data distribution strategies.
94. What criteria to select file organization.
95. Define modality.
96. Which activities are involved in data analysis?
97. Why is report generator is used in database system?
98. Explain the concept of formal parameters.
99. What is lifetime of a variable?
100. What is Compiler.
101. What is garbage value?
102. List any four types of integer data in C language.
103. What is relational operator?
104. Trace the error
#include<stdio.h>
Void main()
{
Printf(“High Programming Language”)
}
105. Trace the output of the following:
x=5;
y=x++;
printf(“%d%d”,x,y);
106. What are the advantages of C Language.
107. What is the use of printf() function?
108. Define Conditional loop.
109. Discuss the role of \b.
110. What is variable deceleration.
111. How Interpreter works?
112. What happens if break is missed in case block?
113. What is format specifier?
114. Determine the output
If(1 == 2)
printf(“PUNJAB”);
else
printf(“KPK”);
115. Define the term machine independence.
116. Why the logical error is most difficult error
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
117. Differentiate b/w String constant and character Constant?
118. What is identifier? Give an example
119. Define Compound assignment statement.
120. Write down output of the following:
if (2 % 3 > = 1)
printf(“good”);
else
printf(“bad”);
MS-ACCESS
121. Define DBMS.
122. Distinguish between primary key and foreign key.
123. List any two properties of a relation.
124. What do you mean by entity integrity?
125. Define synonym.
126. Write any two advantages of forms.
127. Define the term degree of a relation.
128. List out four data types available in Ms-Access.
129. Differentiate between combo box and list box.
C-LANGAUGE
130. What is statement terminator?
131. Differentiate between linker and loader.
132. What is source program?
133. What is runtime error?
134. What is standard identifier?
135. What will be the value of X (integer variable)? X = 1 + 2% 3 – 3;
136. What will be the output of the following code?
int x = 10 , y = ++x ;
x=y--;
printf(“%d”,y);
137. Trace error from the following code:
Int room # ;
printf(“%d,”5)
138. What is meant by file pointer?
OR
VISUAL BASIC
139. Define executable file in visual basic.
140. Differentiate b/w Key down and key up events.
141. What is variable declaration.
142. How do you define operator precedence.
143. Declare and initialize three variables T1, T2 and T3 by assigning values 48,50 & 32 respectively.
144. What mathematical operators are used in visual basic.
145. Define concatenation
146. How would you define relational operator.
147. What is the use of “NOT” operator?
C-LANGUAGE
148. What does happen if & Sign is missed in scanf( ) function?
149. List any four input functions.
150. Trace the output of the following code segment:
int a , b , c;
a = 3;
b = a++;
c = ++a;
printf(“%d %d %d”, a, b, c);
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
151. Convert the following code in do while ( ) loop:
int a;
for (a = 1; a < = 25; a + +) {
printf (“%d \n”, a*a);
a++;
}
152. Define control structure.
153. Write an expression in C-language for the following temperature is less than 40.00 and greater than
25.00.
154. Which part of loop does contain the statements to be repeated?
155. What is counter controlled loop?
156. Trace the output of the following code segment:
int k=8 , m = 7, 2;
z = k<m? k++ ; m++;
printf(“%d’,2);
OR ( VISUAL BASIC)
157. Define logical operator.
158. What is goto statement.
159. Differentiate b/w counter and controlled loop.
160. Define do-loop structure.
161. What is iterations?
162. Explain array manipulation.
163. What is control array.
164. How does an array differ from simple variable?
165. Define user-defined function.
MS-ACCESS
166. How partial dependency is differed from transitive dependency?
167. When is a relation in first normal form?
168. What is the use of data sheet view in MS Access?
169. Define the term degree of relation.
170. Differentiate b/w ‘*” and ‘?’ wild card.
171. Define Sub form.
172. Differentiate b/w combo box and list box
173. Write any two uses of reports.
174. How does an input mask help the user to enter data.
C-LANGAUGE
175. How is header file include in C-program?
176. What is the use of linker.
177. Define the IDE of turbo C++.
178. What is syntax error?
179. Differentiate b/w declaring & defining a variable.
180. What is the identifier?
181. Differentiate b/w string constant & character constant.
182. What is the use of OR operator?
183. Trace the error
void main()
{
Int A=10
Printf(“%d”,a)
}
OR
VISUAL BASIC
184. Define executable file in visual basic.
185. Differentiate b/w Key down and key up events.
186. What is variable declaration.
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
187. How do you define operator precedence.
188. Declare and initialize three variables T1, T2 and T3 by assigning values 48,50 & 32 respectively.
189. What mathematical operators are used in visual basic.
190. Define concatenation
191. How would you define relational operator.
192. What is the use of “NOT” operator?
C-LANGUAGE
193. Trace the output of following code
float f=4.17894;
printf(“%2.2f”,f);
194. List any two data types in C language.

195. Write output of the following code:


int k=0;
while(k<=5)
{
printf(%3d%3d\n”,k,10-k);
k++;
}
196. Predict the output of the following code segment
int n;
for(n=1;n<=12;n=n+4)
printf(“%d”,n);
197. What is counter-controlled loop.
198. Trace the output
if(50<20)
printf(“ABC”);
printf(“DEF”);
199. What is the use of goto statement?
200. What is if Statement.
201. Covert for loop into while loop.
int a;
int k=1;
for(a=1; a<25; a++);
printf(“%d\n”,a*k);
OR ( VISUAL BASIC)
202. Define logical operator.
203. What is goto statement.
204. Differentiate b/w counter and controlled loop.
205. Define do-loop structure.
206. What is iterations?
207. Explain array manipulation.
208. What is control array.
209. How does an array differ from simple variable?
210. Define user-defined function.
211.

LONG
1. Write some advantages or characteristics of C language.
2. Explain nested – If statement with its purpose, syntax, flowchart & suitable program example.
3. What is type casting & explain its types with an example.
4. Write a program to print odd numbers from 11 to 30 using loop.
5. Write a program that input a number and display the table of that number.
6. What is control structure? Briefly Describe the basic control structure for writing programs.
7. Briefly describe the basic structure of C program.
Write a C program in C Language to accept a year from the user. Find out it is a leap year or not leap year.
STARS COLLEGE OF SCIENCE & COMMERCE
FOR GIRLS MULTAN CAMPUS
What is while loop? Explain the working of while loop structure with example also and give its
syntax and flow chart.
8. Describe the characteristics of high-level programming language.
9. Describe decrement operator in detail along with example.
10. Write a program that input three numbers and display the maximum number by using nested if
statement
11. What is for loop? Write its syntax and working of for loop with example
12. What is database design? Briefly explain the database design process with the help of diagram
13. Define file. Explain the file types from usage point of view.
14. What is control structure? Briefly Describe the basic control structure for writing programs.
15. Briefly describe the basic structure of C program.
16. Write a C program in C Language to accept a year from the user. Find out it is a leap year or not leap year.
17. What is while loop? Explain the working of while loop structure with example also and give its
syntax and flow chart.
MS-ACCESS (ATTEMPT ANY ONE QUESTION)
18. What is file traditional processing system? Write down its disadvantages in detail.
19. When is a relation in first normal form? Explain with example.
C-LANGUAGE (ATTEMPT ANY TWO QUESTION)
20. What is switch statement? Explain its working with flowchart and example.
21. Write a program in C-language which does display the sum of following series using any loop.
1 1 1 1
1 + + + + ......... +
2 4 6 100
22. Briefly describe the process of writing a function in C-language.

OR VISUAL BASIC (ATTEMPT ANY TWO QUESTION)


23. Describe any eight properties of form in visual basic.
24. Write a program in visual basic that input two numbers and one arithmetic operator it applies.
Arithmetic operator on the basis of given operator.
25. Define do-loop until with syntax. Explain its working with example and flowchart.
MS-ACCESS (ATTEMPT ANY ONE QUESTION)
26. What is normalization? Explain 2NF in detail with example.
27. Discuss different methods of modifying a table.
C-LANGUAGE (ATTEMPT ANY TWO QUESTION)
28. Define Nested if statement. Explain with the help of diagram and example.
29. How would you edit, create, compile and execute a c program? Discuss briefly .
30. Write a program that gets starting and ending number from user and display all odd numbers
in the given range using do-while loop.
OR VISUAL BASIC (ATTEMPT ANY TWO QUESTION)
31.

32. Describe any eight properties of form in visual basic.


33. Write a program in visual basic that input two numbers and one arithmetic operator it pplies.
Arithmetic operator on the basis of given operator.
34. Define do-loop until with syntax. Explain its working with example and flowchart.
35.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy