How Well Can You Score In The Computer Programming Quiz?

82 Questions | Total Attempts: 227  Settings  How well can you score in the computer programming quiz? If you consider yourself that you know it all when it comes to programming and is looking for a challenge. The quiz will be exactly what you need, so be sure to check out each question and give the answer that’s right according to you. Be on the lookout for other programming quizzes.

• 1.
Write a biconditional state for P=The shape is a rectangle q=The shape has four sides.
• 2.
Programming in c/c++ use "stdio.h" for standard libraly
• A.

True

• B.

False

• 3.
If the person is not a vegetarian than the person does not(not) eat meat.Is an example of what kind of statement?
• A.

Biconditional

• B.

Contrapositive

• C.

Inverse

• 4.
Example: p= A person is  a vegetarianq=the person does not each beerIf the person is not a vegetarian than the person does not(not) eat meat.In this situation not and not cancel each other out
• A.

True

• B.

False

• 5.
A contrapositive statement is represented with the symbols ______________
• 6.
Which of the following is the contrapositive of the statement If the shape is a rectangle (p) then the shape has four sides(q).
• A.

If the shape does not have four side then the shape is not a rectangle

• B.

If the shape is a rectangle (p) then the shape has four sides(q)

• C.

If the shape has four sides the shape is a rectangle

• 7.
Is the following an inverse statement of If the shape is a rectangle then the shapes has four sides.If a shape is not a rectangle then it does not have four sides,
• A.

True

• B.

False

• 8.
Which of the following is a converse conditional statement in symbols
• A.

P->q

• B.

QP

• C.

Q->p

• 9.
The inverse of: If a shape is a rectangle then the shape has four sides.
• A.

If a shape is not a rectangle then it does not have four sides.

• B.

IF a shape is a rectangle if and only if it does not have four sides.

• C.

Penguin.

• 10.
Choose correct Truth table for ~P and ~P->Q if the P column is  TTFF and if the Q  column is TFTF
• A.

TFTT;TFTT

• B.

FFTT;TFTT

• C.

FFTT;TFTF

• 11.
P<->q symbolizes which of the following?
• A.

Conditional

• B.

Biconditional

• C.

Inverse

• 12.
If the shape is a rectangle then the shape has four sides is and example of ___________ statement.
• 13.
The Maximum width of a C variable name can be ________________.
• A.

20 Character

• B.

32 Character

• 14.
A flowchart is graphical representation of an algorithm.
• A.

True

• B.

False

• 15.
An algorithm consists of a set of explicit and unambiguous finite steps.
• A.

True

• B.

False

• 16.
The C programming language was developed by Charles Babbage.
• A.

True

• B.

False

• 17.
The C complier runs a program called the C Processor.
• A.

True

• B.

False

• 18.
Strcpy is used to copy the string.
• A.

True

• B.

False

• 19.
Pointer is mainly used Point out the Function.
• A.

True

• B.

False

• 20.
A Header File is a file that contains Definitions and Macros.
• A.

True

• B.

False

• 21.
• A.

True

• B.

False

• 22.
Do while loop tests the condition at the End of the Loop.
• A.

True

• B.

False

• 23.
The ___________________ loop executes at least once.
• A.

Break

• B.

Stop

• 24.
In face “++” has a higher precendence than “*”.
• A.

True

• B.

False

• 25.
Null will be defined as something else.
• A.

True

• B.

False

Related Topics Back to top