Computer Science MCQs
Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Computer Science MCQs, Computer Company, Abbottabad.
In this group we send the MCQs that are important and helpful for upcoming jobs tests in PPSC, PMS, NTS, PTS, FPSC, KPPSC, BPSC, SPSC competitive exams and important Link's that's help u to developed your programming skills .
What is the output of C Program.?
int main()
{
int a=9;
if(a=8)
{
printf("Kangaroo\n");
}
printf("Eggs\n");
return 0;
}What is the output of C Program.?
int main()
{
int a=9;
if(a=8)
{
printf("Kangaroo\n");
}
printf("Eggs\n");
return 0;
}
A) No output
B) Eggs
*C) Kangaroo Eggs
D) Compiler error
Explanation:
a=8 is an assignment not comparison. IF( Non Zero) is always TRUE.
What is the output of the C Program.?
int main()
{
if( 10 < 9 )
printf("Hurray..\n");
else if(4 > 2)
printf("England");
return 0;
}
*A) England
B) Hurray..
C) Compiler error for missing else
D) None of the above
Choose a statement to use C If Else statement.
A) else if is compulsory to use with if statement.
B) else is compulsory to use with if statement.
*C) else or else if is optional with if statement.
D) None of the above
Choose a correct statement regarding C Comparison Operators.
A) (x == y) Is x really equal to y. (x != y) Is x not equal to y.
B) (x < y) Is x less than y (x > y) Is x greater than y
C) (x = y) Is x greater than or equal to y
*D) All the above
What is the output of C Program.?
int main()
{
int a=0;
a = printf("4");
printf("%d",a);
return 0;
}
A) 04
B) compiler error
C) 40
D*) 41
Explanation:
a = printf("4");
First printf prints 4. printf() returns 1. Now the variable a=1;
So 1 is printed next.
Choose a syntax for C Ternary Operator from the list.
*A) condition ? expression1 : expression2
B) condition : expression1 ? expression2
C) condition ? expression1 < expression2
D) condition < expression1 ? expression2
What is the other name for C Language ?: Question Mark Colon Operator.?
A) Comparison Operator
B) If-Else Operator
C) Binary Operator
D*) Ternary Operator
What is the output of C Program.?
int main()
{
int k, j;
for(k=1, j=10; k
Choose correct Syntax for C Arithmetic Compound
Assignment Operators.
A) a+=b is (a= a+ b) a-=b is (a= a-b)
B) a*=b is (a=a*b) a/=b is (a = a/b)
C) a%=b is (a=a%b)
D*) All the above.
Choose a correct C Statement.
A) a++ is (a=a+1) POST INCREMENT Operator
B) a-- is (a=a-1) POST DECREMENT Opeartor --a is (a=a-1) PRE DECREMENT Opeator
C) ++a is (a=a+1) PRE INCRMENT Operator
D*) All the above
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}while(a
What is the output of C Program.?
int main()
{
int a=25;
while(a
What is the output of C Program.?
int main()
{
while(true)
{
printf("RABBIT");
break;
}
return 0;
}
A) RABBIT
B) RABBIT is printed unlimited number of times.
C) No output
D*) Compiler error
Choose a right C Statement.
A) Loops or Repetition block executes a group of statements repeatedly.
B) Loop is usually executed as long as a condition is met.
C) Loops usually take advantage of Loop Counter
D*) All the above.
What is length of an Identifier that is unique for Non Global
Variables and Non Function Names.?
A) 32
B*) 63
C) 64
D) 68
Q.: What is the number of characters used to distinguish Identifier or Names of Functions and Global variables.?
A*) 31
B) 32
C) 33
D) 28
An Identifier may contain.?
A) Letters a-z, A-Z in Basic character set. Unicode alphabet characters other languages
B) Underscore _ symbol
C) Numbers 0 to 9 Unicode Numbers in other languages
D) All the above
Single Line Comment // is also called.?
A) C++ Style Comment
B) Java Style Comment
C) PHP Style Comment
D*) All the above
Correct way of commenting a single line is.?
A) /*printf("Hello C.."); printf("How are you.");
B*) //printf("Hello C.."); printf("How are you.");
C) /*printf("Hello C.."); printf("How are you.");*/
D) /printf("Hello C..");/ printf("How are you.");
Choose correct answer..
main()
{
/* Multi Line Comment
This line is ignored by compiler
*/
printf("Hello C..");
}
A) is a Preprocessor Directive
B) is a header file with predefined functions like printf, scanf etc
C)
main()
{
}
is a mandatory function to be included in every C Program.
D*) All the above
Which of the following is NOT a function of the network layer?
A*. to deliver bits from source to destination
B. to deliver packets from source to destination
C. it allows different networks to be interconnected
D. it provides data routing paths
What does the term Pangaea mean in geography?
A. Hypothetical Hills
B*. Hypothetical supercontinent
C. Supernova
D. Big continent
Which of the following term is used to refer to a column in a table?
A. Tuple
B. Key
C. Field
D*. Attribute
Which of the following routing algorithms can be used to transmit an incoming
data packet to reach the destination efficiently in network layer design?
A. Dijkstra's algorithm (Shortest Path algorithm)
B. Distance-vector routing
C. Link-state routing
D*. All options
Which of the following is NOT a type of prototype of the Prototyping Model?
A. Horizontal Prototype
B*. Diagonal Prototype
C. Domain Prototype
D. Vertical Prototype
Which of the following can help us detect poor E-R design?
A. Database Design Process
B. ER Diagram
C. Schema
D*. Functional dependencies (FDs)
Which statement is correct about optical page replacement?
A. Page will be replaced which is least recently used
B. Pages are replaced which arrives first into memory
C. Pages are modified which are not used for a long time
D*. Pages are replaced which are not used for a long time
Choose the correct full form of W3C?
A. World Wide Web Collaboration
B. World Wide Web Control
C. Word Wide Websites Consortium
D*. World Wide Web Consortium
An area of memory used to store information related to the pixels in the pictures in
a graphic system is known as--?
A*. Frame buffer
B. Frame memory
C. Resolution memory
D. Pixel buffer
The return address from the interrupt-service routine is stored on which of the
following--?
A. System Heap
B*. Processor stack
C. Memory stack
D. Processor register
What is the main unit of a personal computer?
A*. CPU
B. Hard Disk
C. RAM
D. VGA
A unique set of values permitted for each attribute of relation in a table is known
as--?
A*. Domain
B. Set
C. Schema
D. Relation
In which of the following relationship each related entity set has its own schema
and there is an additional schema for the relationship set?
A. A multivalued attribute of an entity set
B*. A many-to-many relationship set
C. A one-to-many relationship set
D. A one-to-one relationship set
In _____ we have to instruct the computer in
each and every step.
(A) Code
(B) Pseudo code
(C) Algorithm
(D*) Flow chart
Which of the following is not an arithmetic
operator?
(A) +
(B) *
(C) %
(D*) &
Which of the following statements is not true about
C language?
(A) Every instruction is terminated by semicolon
(B*) It is case insensitive
(C) Comments can be placed anywhere in the program code
(D) It has features of both high level and low level languages
Who developed C language?
(A) Ken Thomson
(B) Peter Norton
(C*) Dennis Ritchie
(D) Von Neuman
Which of the following is not a valid data type in C
Language?
(A) Double
(B*) Char
(C) Long
(D) Float
The acronym ANSI stands for
(A) American National Standards International
(B) American National Standards Instructions
(C*) American National Standards Institute
(D) American National Software Incorporation
Click here to claim your Sponsored Listing.
Category
Contact the business
Website
Address
22010
Najam Plaza Shop 2
Abbottabad, 22010
Dealing with every kind of lptops, computers,laptop accessories,repairing,head fones,chargers etc
Ali Plaza , Opposite Stylo Mandian Abbottabad
Abbottabad
Looking Laptops at affordable price tag in abbottabad you surely are at the right place feel free to
Shop #, 40, First-floor, Ali Plaza, Mansehra Road Mandian Abbottabad
Abbottabad, 22040
Laptop motherboards keyboards speakers touch pads wifi Bluetooth hard drives Rams ABCD parts Hinges
Abbottabad
Abbottabad, 22500
Your Python � solutions Experts� Unlock the power of Python with PythonSolutions.
Office No 2, IT PARK, COMSATS UNIVERSITY
Abbottabad, 22060
SoloSoft Technologies is a fast growing IT company established in 2010 to exploit the niche Business Process Outsourcing (BPO) and Software Implementation
Abbottabad, 22010
Composing, Designing, Scanning, Printing, Panaflex, Thesis Bindings, Signboards, Fax & E-mail, Photo State ( Colour, Black & White).