0% found this document useful (0 votes)
30 views36 pages

Class 12 Unsolved Computer Guess Paper

Uploaded by

maazkhangt100
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)
30 views36 pages

Class 12 Unsolved Computer Guess Paper

Uploaded by

maazkhangt100
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

M

E
En
gl
ish
Ce
nt
er
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 1 CONCEPT OF PROGRAMMING


1) is a relatively simple high level language that was developed to help student learn
programming
●​ basic
●​ cobol
●​ c
●​ all

2) the rules for using programming languages are called


●​ sematic
●​ rule
●​ syntax
●​ module

er
3) in a preparing program one should first
●​ plan the solution

nt
●​ document the program
●​ code the program Ce
●​ define the problem

4) during the development of a program , drawing a flowchart is means to


●​ plan the solution
ish

●​ document the program


●​ code the program
●​ analyse the problem
gl

4) which of the following is used to design a program using english like statement
En

●​ algorithm
●​ program flowchart
●​ control structures
E

●​ none
M

5) compiler and interpreter are types of


●​ programming languages
●​ language translator
●​ alpha tester
●​ application generators

6) which of the following type of error is detected by a language translators


●​ program design
●​ logic
●​ syntax
●​ both b and c

7) you test a program to find which of the following


●​ flowcharting errors
●​ logic errors
●​ algorithmic error

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

●​ syntax errors

8) in prparing a program , desk checking and translating are examples of


●​ coding
●​ testing
●​ planning
●​ documenting

9) which of the following is not part of programming steps

●​ planning the solution


●​ coding the program
●​ testing the program
●​ selecting the hardware

10) comments in a program itself are part of

er
●​ compiling

nt
●​ translating
●​ linking Ce
●​ documenting

11) the first high level language to be introduced was


ish

●​ cobol
●​ fortran
gl

●​ pascal
●​ basic
En

12) the language name for french mathematician is

●​ c
E

●​ pascal
M

●​ fortran
●​ cobol

13) specifying the kind of input, processing,and output required for a program occurs
when

●​ planning the solution


●​ coding the program
●​ flowcharting the problem
●​ defining the problem

14) error messages provider by a compiler is called


●​ bugs
●​ translations
●​ diagnostics
●​ mistakes

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

15) after testing a solution in algorithm you would next


●​ test the program
●​ implement the program
●​ code the program
●​ translate the program

16) software that translates assembly language to machine language is an


●​ binary translators
●​ assembler
●​ compiler
●​ link loader

17) a stadardized bussiness language is


●​ pascal
●​ cobol

er
●​ basic
●​ fortran

nt
18) in developing a program documentation should be done
Ce
●​ as the last ste p
●​ only to explain errors
●​ throgh out the process
ish

●​ only during the design phase

19) which of the following languages is frequently used in object programming


gl

●​ cobol
●​ c
En

●​ c++
●​ pascal

20) popular object oriented languages are


E

●​ pascal,cobol
M

●​ c+,fortran
●​ c++,small talk
●​ cobol,basic

ANSWER 1 basics

ANSWER 2 syntax

ANSWER 3 plan the solution

ANSWER 4 Plan the soolution

ANSWER 5 Algorithm

ANSWER 6 Language translators

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 7 syntax

ANSWER 8 Logic error

ANSWER 9 coding

ANSWER 10 Selecting the hardware

ANSWER 11 documenting

ANSWER 12 fortran

ANSWER 13 pascal

ANSWER 14 Defining the problem

er
ANSWER 15 translations

nt
ANSWER 16 Implement the program
Ce
ANSWER 17 assembler

ANSWER 18 cobol
ish

ANSWER 19 Through out the process


gl

ANSWER 20 C++
En

SHORT QUESTIONS
E

Q1 diffrence between
●​ syntax vs logical error
M

●​ compiler vs interpreter
●​ human language vs computer language
Q2 what is definition of program ? also define programming?
Q3 difference between source code vs object code (2021-2024)

LONG QUESTIONS
Q1explain steps involves in programming project?
Q2explain all debugging process?

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 2 ALGORITHM AND FLOWCHART


1) a pictorial representation of a problem is called
a flowchart
an algorithm
a pseudocode
none

2 )which of the following is not one of three program logic constructs


simple sequence
condition
loop
goto

3) what do you call the step by step solution to a programming problem

er
recipe
structure chart

nt
syntax
algorithm Ce
4) what does the symbol in a flowchart represent
decision
process
ish

start/stop
predefined process
gl

5) what does the symbol in a flowchart represent


process
En

terminal
input/output
prdefined process
E

6) which of the following type of structure use do while


M

sequence
selection
iterartion
None

ANSWER 1 flowchart

ANSWER 2 goto

ANSWER 3 algorithm

ANSWER 4 decision

ANSWER 5 Input/output

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 6 iteration

ANSWER 7

ANSWER 8

ANSWER 9

ANSWER 10

SHORT QUESTIONS
Q1what is an algorithm?
Q2what is flowchart ? how many types of flowchart are there ?
Q3difference between while loop vs do while loop ?(2024)

er
Q4 define advantages and disadvantages of flowchart?

nt
LONG QUESTIONS
Q1 explain control structure ? also define sequence , selection, iteration structures ?
Ce
Q2 explain flowchart and its symbols ?
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP#3 AN OVERVIEW OF C LANGUAGE


1) c is traditionally called the development language of the
●​ windows 98 operating system
●​ windoe nt operating system
●​ unix operating system
●​ ms word

2) in 1983 , c++ was developed by bjarne strousstrup at the


●​ bell laboratries
●​ microsoft
●​ ibm
●​ uf. defense department

er
3) all c program consists of one or more

nt
●​ function
●​ scanf() statement Ce
●​ printf statement()​
pointers
ish

4) at a minimum , all c program must specify one function called


●​ basic function
●​ main function
gl

●​ primary function
●​ elementry function
En

5) you begin a comment with the character


E

●​ */
●​ /*
M

●​ \*
●​ none

6) borland international inc , usa released its own version c++ in 1992 and called its
compiler as
●​ turbo c++
●​ r and k c++
●​ super soft c++
●​ dbs c++

7) every statement in c must end with


●​ :
●​ ]
●​ ;
●​ .
●​

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

8) a relational operator is used to


●​ change variable to logical values
●​ compare values
●​ distinguish different types of variables
●​ combine values

9) this function is used to clear the screen


●​ clear
●​ clrscr
●​ clrsr
●​ none

10) this format specifier is used for exponential notation


●​ %e
●​ %x
●​ %xd

er
●​ %d

nt
11) this sub directory contain header files
●​ lib Ce
●​ bin
●​ include
●​ Hgi
ish

ANSWER 1 Unix operating system


gl

ANSWER 2 Bell laboratories


En

ANSWER 3 function

ANSWER 4 Main function


E

ANSWER 5 \*
M

ANSWER 6 Turbo c++

ANSWER 7 ;(semicolon)

ANSWER 8 Compare values

ANSWER 9 Clrscr()

ANSWER 10 %e

ANSWER 11 include

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

SHORT QUESTIONS
Q1 why c is called case sensitive ? also write about statement terminator(2022-2023)
Q2 what are escape sequences ? give some examples ?
Q3 what are comments in c language ?
Q4 what is ide ? few shortcuts keys and their function in ide ?
Q5 what is c processor directive ? define “define” “include”(2023-2024)

LONG QUESTIONS
Q1 breifly explain history of c also define its characteristics ?
Q2 explain basic struture of c?

er
nt
Ce
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 4 C FUNDAMENTAL
1) char constant values
●​ must be enc
●​ losed in double quotes
●​ must be enclosed in single quotes
●​ can be enclosed in either double and single quotes
●​ none

2) int constant values


●​ can include an optional comma to improve readability
●​ can include an optional dollar sign when representing money
●​ can include optional plus and minus sign
●​ can consists of only digits

er
3) symbolic constant
●​ must appear in capital leters

nt
●​ are disliked bys erious p;rogrammer
●​ enchanced the redeability of program Ce
●​ can include keywords

4) variables
●​ are created using the #define directive
ish

●​ are floating point by default


●​ should have simple names
●​ can be defined as having any c type data
gl

5)a variable definition differs from declaration in that


En

●​ the decalaration sets aside storage space


●​ the declaration specifies the name and type of the variables
●​ the definition set aside storage space
E

●​ the definition specifies the name and type of variables


M

6) this data type in c occupies 4 times as many bytes of memory as type char
●​ int
●​ float
●​ double
●​ longh float

7) a variable that can hold the value 234 having a data type
●​ char
●​ float
●​ int
●​ double

8) type character accommodate numbers from


●​ -32768 to +32768
●​ -128 to 127
●​ 51 to 54

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

●​ none
9) this will be output of 22%3
●​ 3
●​ 1
●​ 22
●​ 0
●​
10) quantities whose value can be changed during program execution
●​ constant
●​ variables
●​ switches
●​ none
11)this data type is uesd when the function does not written a value
●​ char
●​ double
●​ void

er
●​ None

nt
ANSWER 1 Must be enclosed in single quotes

ANSWER 2
Ce
Can consists of only digit

ANSWER 3 Must appear in capital letter


ish

ANSWER 4 Can be defined as having any c type data


gl

ANSWER 5 the definition set aside storage space


En

ANSWER 6 int

ANSWER 7 int
E

ANSWER 8 -128 to 127


M

ANSWER 9 1

ANSWER 10 Variable

Answer 11 void

SHORT QUESTIONS
Q1 state the rules which must be observed while constructing identifiers?
Q2 local variable vs global variables ?(2024)
Q3 what are keyword in c ? what restriction apply to thir use ?(2022)
Q4 list five keyword explain thir use ?
Q5 difference between constant vs variables ?
LONG QUESTION
Q1 explain all data types in “c” with examples?(2024-2021)

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 5 OPERATORS AND EXPRESSION


1) which of the following is an example of intiallising variable
●​ num=2;
●​ int num;
●​ num<2
●​ num>2

2) floating point variable are use instead of integer to


●​ avoid being to specific about what value a number has
●​ permit that use of decimal points of number
●​ make possible the use of even number
●​ conceal the true value of number

3) which of the following is an airthmetic operators

er
●​ +
●​ &

nt
●​ &&
●​ < Ce
4) precedence define which operator
●​ is most important
●​ is used first
ish

●​ is fastest
●​ operates on largest number
gl

5) a relational operator is ued to


●​ combine values
En

●​ compares value
●​ distinguish different type of variables
●​ none
E

6) the standard library contains many useful functions called


M

●​ initial functions
●​ basic functions
●​ libraray command
●​ library function

7) this is called the address operator


●​ &
●​ %
●​ *
●​ #

8) the library function sqrt(1024) returns


●​ 512
●​ 32
●​ 256
●​ 64

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

9) this operator operates on only one operand


●​ =
●​ ==
●​ &&
●​ !

10) format specifier use for integer data type


●​ %d
●​ %c
●​ %s
●​ none

11) if a = -5 the statement a+=5 returns


●​ -15
●​ 0
●​ 10

er
●​ -5

nt
Answer 1
Ce
Int num:

ANSWER 2 Permit the use of decimal points of


ish

number
ANSWER 3 +
gl

ANSWER 4 Is used first

ANSWER 5 Compares value


En

ANSWER 6 Libraray function


E

ANSWER 7 &
M

ANSWER 8 32

ANSWER 9 !

ANSWER 10 %d

ANSWER 11 0

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

SHORT QUESTIONS

Q1 define
1)​ operators 2) expression 3) operand
Q2 what is meant by associativity? aithmetic operators?
Q3 define increment and decrement operators with examples ?(2022)
Q4 what are library function ? name any four?(2021)
Q5 what is an address operator and relational operators give examples ?(2021)

LONG QUESTIONS
Q1explain operators with its types and examples ?(2023-2022)

er
nt
Ce
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 6 INPUT AND OUTPUT STATEMENTS


1)the function designed to read string from the keyboard
●​ getch()
●​ puts()
●​ gets()
●​ getchar()

2)the function scanf() reads


●​ any possible number
●​ a single character
●​ any possible variable type
●​ none

ANSWER 1 gets()

er
ANSWER 2 any possible variable type

nt
ANSWER 3 Ce
ANSWER 4

ANSWER 5
ish

ANSWER 6
gl

ANSWER 7
En

ANSWER 8

ANSWER 9
E
M

ANSWER 10

SHORT QUESTIONS
Q1 what is format specifiers ? give some examples ?
Q2 define scanf() with examples and syntax?(2022)
Q3 what are the commonly used inpiit/output function in c ? how are they accessed?

LONG QUESTIONS
Q1 explain formatted and unformatted input/output function in c ? (2024-2023)

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 7 SELECTION CONTROL STRUCTURES


1) structured programming
●​ is hard to follow but worthwhile
●​ calls for one way in,one way structures
●​ making debugging files
●​ relies heavily on if -else statements

2) which of these expression are true


●​ all
●​ 1
●​ 1==1
●​ -1

3) the statement if (x=0) printf(“x=0”);

er
●​ is incorrect syntax
●​ is correct syntax but x=0 will never point

nt
●​ causes a run -time error
●​ has no effect on the program Ce
4) in a simple if statement with no else , what happen if the condition following the if
is false
●​ the program scearches for the last else in program
ish

●​ nothing, or controls fall through to the statements following if


●​ the body of the statement if executed
●​ the program as a whole executed
gl

5) the statement following a particularis-else in an if-else ladder are executed when


En

●​ the conditional expression following the if-else is true and all previous condition
are true
●​ the conditional expression following the if-else is true and all previous condition
E

are false
●​ the conditional expression following the if-else is false and all previous
M

conditions are true


●​ the conditional expression following the if-else is false and all previous
conditions are false

6) which if in a program does an else pair up with


●​ the last if with the same identation as the else
●​ the last if is not match with its own else
●​ the last if is not enclosed in braces
●​ the last if not enclosed in braces and not matched with its own else

7) the switch statement


●​ can always be used as a subsitute for the ladder structure
●​ can be used only with an if-else statement
●​ is most useful when testing a variable having a limited range of possibilites
●​ all

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

8) the advantage of switch statement over an if-else-if construction is


●​ a default condition can be used in switch
●​ the switch is easier to understand
●​ several different statements can be executed for each case in a switch
●​ none

9) three types of control structures are


●​ initialization, condition,increment
●​ sequence,selection,iteration
●​ selection
●​ none

10) case statement is used with


●​ printf()
●​ scanf()
●​ switch()

er
●​ getch()

nt
ANSWER 1 relies heavily on if -else statements
Ce
ANSWER 2 all
ish

ANSWER 3 is correct syntax but x=0 will never point

ANSWER 4 nothing, or controls fall through to the


statements following if
gl
En

ANSWER 5 the conditional expression following the


if-else is false and all previous conditions
are false
E

ANSWER 6 the last if not enclosed in braces and not


M

matched with its own else

ANSWER 7 is most useful when testing a variable


having a limited range of possibilites

ANSWER 8 the switch is easier to understand

ANSWER 9 sequence,selection,iteration

ANSWER 10 Switch()

SHORT QUESTIONS
Q1 how does the else-if ladder differ from switch statement?

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

Q2 define if and if -else with example and syntax

LONG QUESTIONS
Q1 What are control structures? explain selection control structures with its types and
program example (also include nested loops)(2024-2021)
Q2 explain switch statement with one program exammple and also give
syntax?((2021-2022-2023)

er
nt
Ce
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 8 ITERATION CONTROL STRUCTURES


1) the main difference in operation an if statement and a while statement is
●​ the body of the while statement may be executed many times , the body of the if
statement only once
●​ the conditional expression following the keyboard is evaluted differentl,y
●​ the conditional expression following the keyboard is evaluted same
●​ none

2) a single statement for loop is terminated with a


●​ right bracket
●​ right braces
●​ comma
●​ semicolon

er
3) a do-while loopis useful when
●​ the body of the loop will never be executed

nt
●​ the body of the loop will be exceuted at least once
●​ the body of the loop may never be executed Ce
●​ none

4) the break statement is used to exit from which part of a loop


●​ beginning
ish

●​ middle
●​ end
●​ none
gl

5) the while loop is more appropriate than a for loop when


En

●​ the terminating condition occurs unexpectedly


●​ the body of loop will be executed at least once​
E

the program will be executed at least once


●​ none
M

6) the advantage of putting com plete assignments statements inside loop expression
is
●​ to avoid akward program constructions
●​ to simplify the flow of control in a program
●​ to reduce the no of program statement
●​ none ​

7) the statement for(x=0;x<1;x++) print(“x=0”)


●​ is an infinte loop
●​ will never output
●​ causes a syntax error
●​ will output once

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

8) the statement for(x=0;x<-1;x++) print(“x=0”)


●​ is an infinte loop
●​ will never output
●​ causes a syntax error
●​ will output once

9) assuming x does not equal to 0 the statement while (x==0) printf(“x=0”)


●​ is an infinte loop
●​ will never output
●​ causes a syntax error
●​ will output once

10) assuming x does not equal to 0 the statement do printf (“x=0”) while (x==0)

●​ is an infinte loop
●​ will never output

er
●​ causes a syntax error
●​ will output once

nt
11) this sttatement causes an exist from the inner most switch
Ce
●​ continue
●​ goto
●​ break
ish

●​ default

12) the loop within the another loop is called


gl

●​ nested loop
●​ looping
En

●​ for loop
●​ none

13) this statement terminate any loop imediately


E

●​ continue
M

●​ break
●​ switch
●​ none

14) multiple increment expression in a for loop expression seperated by


●​ <
●​ *
●​ ;
●​ \\
●​ ,

15) the loop will be executed at least once whhther its condition false
●​ for
●​ while
●​ do while
●​ continious loop

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 1 ●​ the body of the while statement may


be executed many times , the body of
the if statement only once

ANSWER 2 semicolon

ANSWER 3 ●​ the body of the loop will be exceuted


at least once

ANSWER 4 end

ANSWER 5 ●​ the terminating condition occurs


unexpectedly

ANSWER 6 ●​ to reduce the no of program


statement

er
ANSWER 7 Will output once

nt
ANSWER 8 Will never output
Ce
ANSWER 9 Will never output
ish

ANSWER 10 Will output once

ANSWER 11 break
gl

ANSWER 12 Nested loop


En

ANSWER 13 break
E

ANSWER 14 ,
M

ANSWER 15 Do while

SHORT QUESTIONS
Q1 explain break and continue statement with syntax and examples ?
Q2 what is loop/iteration?
Q3 define with syntax and examples
1)for 2) while 3) do while

LONG QUESTIONS
Q1 defines loop and detailed explanation and its types with its syntax and examples
?also includes all nested loops?

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 9 FUNCTIONS
1) according to the principle of software design , functions
●​ should complete at least two result to be worth the overhead
●​ should be short and compute one result
●​ are not really necessary for good softwrae design
●​ none

2) which of these are valid reasons for using functions


●​ they use less memory than repeating the same code
●​ they run faster
●​ they keep different program activites separate
●​ none

3) a function prototype

er
●​ is the same a as the function header
●​ is the same as the function call

nt
●​ is not necessary as a turbo c++
●​ none Ce
4) a global variable is defined in a declaration
●​ in main() only
●​ in the first function that uses it
ish

●​ in any function that uses it


●​ outside of any function
gl

5) a global variables can be refrenced in a declaration


●​ in main() only
En

●​ in the first function that uses it


●​ in any function that uses it
●​ outside of any function
E

6) which of the following are valid reason for using arguments in functions
M

●​ to convey information to the function that it can operate on


●​ to tell the function where to locate itself in memory
●​ to specify the type of function
●​ none

7) which of the following can be passed toa function via arguments


●​ variable (with values)
●​ constant
●​ functions (that return values)
●​ none

8) which of the following function is true


c functions are all equal
c functions can be nested to each other
c functions are arranged in a strict hierarchy
none

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

9) a block of instruction that perform specific task is called


●​ function
●​ loop
●​ string array
●​ NONE

10) function pprototype is called

●​ function definition
●​ function decalaration
●​ function calling
●​ none

11) a function that return only


●​ one values
●​ two values

er
●​ three values
●​ none

nt
12) this is statement can only test for equality Ce
●​ break
●​ switch
●​ return
ish

●​ if

ANSWER 1 ●​ should be short and compute one


gl

result
En

ANSWER 2 ●​ they keep different program activites


separate

ANSWER 3 ●​ is not necessary as a turbo c++


E
M

ANSWER 4 outside of any function

ANSWER 5 outside of any function

ANSWER 6 ●​ to convey information to the


function that it can operate on

ANSWER 7 all

ANSWER 8 C function can be nested to each other

ANSWER 9 Function

ANSWER 10 Function declaration

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

Amswer 11 One value

Answer 12 switch

SHORT QUESTIONS
Q1 what is functions ?
Q2 advantages of function?
Q3 what is function prototype?
Q4 difference between actual parametere vs formal parametere?
Q5 define following functions
1)​ abs() 2) pow() 3) sqrt()
long questions

LONG QUESTION

er
Q1 what is function classification of functions also define general form of function?
Q2 difference between predefined function vs user defined function?

nt
Ce
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 10 ARRAY
1) an array is a collection of variables of
●​ the same data typed placed next to each other in memory
●​ different data types scattered throughout memeory
●​ the same data type scattered throughout memeory
●​ none

2) a simple variable differs from an array variables because a simple variable


●​ can have only one value during the entire execution of a program
●​ can have many value during the entire execution of a program
●​ has a many to many relation ship between the variable and associated data
●​ none

3) what will happen if you try to put so many elements in to an array when you

er
initialize it that the size of the array is exceded
●​ nothing

nt
●​ possible
●​ error message from the compiler Ce
●​ none

4) when you pass an array as an argument toa a function what is actually passed
●​ the address of the array
ish

●​ the address of the first element in the array


●​ the no of element in an array
●​ none
gl

5) what will happen if you put to few elements in an array when you initialize it
En

●​ unused elements will be filled with 0’s or garbage


●​ nothing
●​ possible
E

●​ errror message from the compiler


M

6) to passed an individual element of an array to a function you must specify


●​ the name of the array and the element number as two separate arguments
●​ just the element number
●​ the name of the array and the element number as one as separate arguments
●​ none

ANSWER 1 ●​ the same data typed placed next to


each other in memory

ANSWER 2 can have only one value during the entire


execution of a program
ANSWER 3 error message from the compiler

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 4 the address of the first element in the


array

ANSWER 5 unused elements will be filled with 0’s or


garbage
ANSWER 6 the name of the array and the element
number as two separate arguments

ANSWER 7

ANSWER 8

ANSWER 9

ANSWER 10

er
nt
SHORT QUESTION Ce
Q1 what is an array ? how do you declare an array?
Q2 define 2d array with syntax?
ish

LONG QUESTION
Q1define array with its examples and its types?
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 11 STRINGS
1) a string is a collection of
●​ a list of character
●​ an array of chararacter
●​ a collection of charaacters
●​ none

2) which is more appropriate for reading in am multiword string


●​ gets()
●​ printf()
●​ scanf()
●​ puts()

3) the statement strlen(string)

er
●​ return the length of string including the null character
●​ return the length of string excluding the null character

nt
●​ return the length of the string as specified in its declaration
●​ none Ce
4).the statement strcpy(string1, string2)
●​ add string1 to the end of string 2
●​ add string 2 to the end of string 1
ish

●​ overwrites string2 with string 1


●​ none
gl

5) a string is terminated by a null characterwhich is written as


●​ \0
En

●​ //
●​ \n
●​ \\
E

ANSWER 1 An array of character


M

ANSWER 2 Gets()

ANSWER 3 Return the length of string excluding the


null character

ANSWER 4 Overwrite string 2 string with string 1

ANSWER 5 \0

ANSWER 6

ANSWER 7

ANSWER 8

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 9

ANSWER 10

SHORT QUESTIONS
Q1 what are strings ? how do you compare two strings ?
Q2 define strings declaration?

LONG QUESTIONS
there are no long questions from this chapter

er
nt
Ce
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 12 UNION AND STRUCTURES


1) the purpose of declaring a structure type is to
●​ set aside the appropriate amount of memeory
●​ define the format of the structure
●​ define a new data type
●​ none

2) how many structure variables of given type can you use in a program
●​ one
●​ none
●​ as many as you like
●​ as many as there are members in the structure
●​ none

er
3) a union consists of a number of elements that
●​ all have the same type

nt
●​ must be structure
●​ are grouped next to each memory location Ce
●​ all occupy the same space in memory

ANSWER 1 define a new data type


ish

ANSWER 2 as many as you like

ANSWER 3 All occupy the same space in memory


gl

ANSWER 4
En

ANSWER 5
E

ANSWER 6
M

ANSWER 7

ANSWER 8

ANSWER 9

ANSWER 10

SHORT QUESTIONS
Q1 what are structures ? how is s a struture declared?
LONG QUESTIONS

there is no long questions from this chapters

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

CHAP # 13 POINTERS
1) which of these reason for using pointers?
●​ to mainpulate part of the array
●​ to refer to keyyword such as for anf if
●​ to return more than one value from a function
●​ to refer to particular program more convenientlly

2) which is the correct way to define a pointer?


●​ int _ptr x;
●​ int * ptr;
●​ *int ptr;
●​ *x;

ANSWER 1 to mainpulate part of the array

er
ANSWER 2 Int*ptr;

nt
ANSWER 3 Ce
ANSWER 4

ANSWER 5
ish

ANSWER 6
gl

ANSWER 7
En

ANSWER 8

ANSWER 9
E
M

ANSWER 10

SHORT QUESTIONS
Q1 what is pointers used in c program ?how it is intialized?
Q2 why pointers used in c program?

LONG QUESTIONS
there is no long questions from this chapters

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

MOST IMPORTANT LONG QUESTIONS


Q1 explain all data types in c with examples ?(2024-2021)
Q2 what is operators explain basic types of operator in c ? (2023-2022)
Q3 what is control structures? explain slection control structure with its
types?(2024-2021)
Q4 define switch and break statement with one propogramming example and
syntax?(2021-2023-2023)
Q5 explain unformatted and formatted functions in c? (2023)
Q6explain array with example and its types ?also define declaration of an array?
Q7what are loops/iteration ? define its types with programming examples and also
give its syntax?
Q8what is functions classification of functions also define general form of functions?
Q9explain steps involving in programming project?
Q10expalin basic structure of c?
Q11expalin control structures? also define sequence ,selection,iteration structures?

er
MOST IMPORTANT DIFFERENCES

nt
1)​ syntax vs logic error Ce
2)​ compiler vs interpreter
3)​ source code vs object code
4)​ human language vs computer language
5)​ while loop vs do while loop
ish

6)​ local variables vs global variables


7)​ constant vs variables
8)​ actual parametere vs formal parametere
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

DATA BASE MANAGEMENT SYSTEM/DATA


FILE/MS ACCESS
1) which of the following function can help speed up data review
●​ program file
●​ key field
●​ offline storage
●​ data file
●​ all of above

2) which of the following is not a function of dbms


●​ providing security to database
●​ providing facilities for backup and recovery of data
●​ providing facilities to generate code for a given set of specification
●​ none

er
3) to extract data from a database and display it or print it to in a performagtted form

nt
user can use
●​ dbms utility
●​ qbe
Ce
●​ report generator
●​ shared database
ish

●​ none

4) data access must be sequential in


gl

●​ network data base model


●​ hierarchical model
En

●​ relational model
●​ flat model

5) if a file is opened in “w” mode


E

●​ reading is possible
M

●​ writing is possible
●​ appending is possible
●​ none

6) this is used to share data from two tables


●​ tables
●​ form
●​ relation
●​ report

7) this data type is used to store long text enteries in ms access


●​ memo
●​ text
●​ number
●​ ole object

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

8) in this database model data is organised in to related groups much like family tree
●​ hierarchical model
●​ network
●​ relation
●​ flat

9)rdbms consist of
●​ collection of record
●​ collection of tables
●​ collection of keys
●​ collection of fields

10)in ms access this object is used to represent data in a printed format


●​ query
●​ form
●​ report

er
●​ macro

nt
11) key field must contain
same values Ce
unique values
double values
none
ish

12) one to many refers to


●​ constrains
gl

●​ join
●​ union
En

●​ cardinality

13) this ms access object is considered primary


●​ table
E

●​ query
M

●​ form
●​ report

14) this is default data type in ms access


●​ memo
●​ text
●​ numeric
●​ none

15) to retrive information from a database user can use this, an easy to use computer
language
●​ data dictonary
●​ report generator
●​ query language
●​ none

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

ANSWER 1 Key field

ANSWER 2 providing facilities to generate code for a


given set of specification

ANSWER 3 Report generator

ANSWER 4 Flat model

ANSWER 5 Writing is possible

ANSWER 6 tables

ANSWER 7 memo

ANSWER 8 Hierarchical model

er
ANSWER 9 Collection of tables

nt
ANSWER 10
Ce
report

ANSWER 11 Unique value


ish

ANSWER 12 cardinality

ANSWER 13 table
gl

ANSWER 14 text
En

ANSWER 15 Query language


E
M

SHORT QUESTIONS
Q1 what is dbms (data base management system)? write its advantages
(2022-2023-2024)
Q2 difference between primary key vs secondry key?(2022)
Q3 difference between primary key vs foreign key?(2024)
Q4 define database relationship?write their uses?(2023)
Q5 main objective of ms access?at least four (2023)
Q6 what is data redundancy?(2022) also define refrential integrity?
Q7 define
1)​ table 2) query 3) data dictonary 4) field 5) entity 6) record 7) sql 8) file
9) designview 10) report (2022)
Q8 advantages and disadvanatges of dbms
Q9 define
1)​ fopen() 2) fscanf() 3) fprintf() (2023)
Q10 define data type in ms access ?
Q11 write a character of composite key?

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN
ME ENGLISH CENTER COMPUTER GUESS PAPER

Q12 what is a memory buffer? also define file?


Q13 why is database management system important to many organisataion?
Q14 how can we define one to one relation in dbms?
Q15 who is a data base administrator ? enlist any three of its responsibilities?
Q16 abbreviation
●​ dml
●​ ddl
●​ sql
●​ ide
●​ rdbms

LONG QUESTIONS
Q1 what is table in database ? explain different types of table relationships in database
with examples ?
Q2 explain data types used in ms access?

er
Q3 explain different types of database model with diagram (2022-2023-2024)
Q4 what is relationship in database ?define three types of relationship data type with

nt
examples?(2024)
Q5 explain objective of dbms? Ce
Q6 explain components of data base managemnet system?(this question is already
cover in short)
ish
gl
En
E
M

For getting all subjects pdf notes and guess paper for classes 9 to 12 , contact on whatsapp
number(03408057780)
Prepared by: FAIZ UR REHMAN

You might also like