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 .

31/08/2022

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.

31/08/2022

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

31/08/2022

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

31/08/2022

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

31/08/2022

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.

31/08/2022

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

31/08/2022

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

29/08/2022
29/08/2022

What is the output of C Program.?
int main()
{
int k, j;

for(k=1, j=10; k

29/08/2022

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.

29/08/2022

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

29/08/2022

What is the output of C Program.?
int main()
{
int a=32;

do
{
printf("%d ", a);
a++;
}while(a

29/08/2022

What is the output of C Program.?
int main()
{
int a=25;

while(a

29/08/2022

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

29/08/2022

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.

16/08/2022

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

16/08/2022

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

16/08/2022

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

16/08/2022

Single Line Comment // is also called.?

A) C++ Style Comment
B) Java Style Comment
C) PHP Style Comment
D*) All the above

16/08/2022

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.");

16/08/2022

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

11/08/2022

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

11/08/2022

What does the term Pangaea mean in geography?
A. Hypothetical Hills
B*. Hypothetical supercontinent
C. Supernova
D. Big continent

11/08/2022

Which of the following term is used to refer to a column in a table?
A. Tuple
B. Key
C. Field
D*. Attribute

11/08/2022

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

11/08/2022

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

11/08/2022

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)

07/08/2022

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

07/08/2022

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

07/08/2022

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

07/08/2022

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

07/08/2022

What is the main unit of a personal computer?
A*. CPU
B. Hard Disk
C. RAM
D. VGA

07/08/2022

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

07/08/2022

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

05/08/2022

In _____ we have to instruct the computer in
each and every step.
(A) Code
(B) Pseudo code
(C) Algorithm
(D*) Flow chart

05/08/2022

Which of the following is not an arithmetic
operator?
(A) +
(B) *
(C) %
(D*) &

05/08/2022

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

05/08/2022

Who developed C language?
(A) Ken Thomson
(B) Peter Norton
(C*) Dennis Ritchie
(D) Von Neuman

05/08/2022

Which of the following is not a valid data type in C
Language?
(A) Double
(B*) Char
(C) Long
(D) Float

05/08/2022

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

Want your business to be the top-listed Computer & Electronics Service in Abbottabad?
Click here to claim your Sponsored Listing.

Website

Address

Abbottabad
22010

Other Computer Companies in Abbottabad (show all)
Ehsan computers Ehsan computers
Najam Plaza Shop 2
Abbottabad, 22010

Dealing with every kind of lptops, computers,laptop accessories,repairing,head fones,chargers etc

Affan Khan Affan Khan
Abbottabad
Abbottabad

My Name is Muhammad Affan Khan, Live in Abbottabad city.

Abdur Rehman Composing Point Abdur Rehman Composing Point
Kutchery Compund Abbottabad
Abbottabad, 22020

Man

Laptop House Abbottabad Laptop House Abbottabad
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

Brainex Software Academy Brainex Software Academy
Silk Road Mandian Abbottabad KP IT Park
Abbottabad

Laptop solution Laptop solution
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

Ayesha beauty products plus Ayesha beauty products plus
Usman Wala
Abbottabad, 1243

i am a digitech student

Sasta technical Sasta technical
Abbottabad

Tech Videos

PythonSolutions PythonSolutions
Abbottabad
Abbottabad, 22500

Your Python � solutions Experts� Unlock the power of Python with PythonSolutions.

SoloSoft Technologies SoloSoft Technologies
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

Spido PC Spido PC
Abbottabad, 22010

Software House and Web Hosting Provider

Ifhan Brother's Printing Agency Ifhan Brother's Printing Agency
Abbottabad, 22010

Composing, Designing, Scanning, Printing, Panaflex, Thesis Bindings, Signboards, Fax & E-mail, Photo State ( Colour, Black & White).