0% found this document useful (0 votes)
26 views1 page

U1 Pps Quiz Part 1: Sun, Oct 27, 2024 - 12:27:38 PM

The document details the results of a quiz taken on October 27, 2024, with a completion time of 10 minutes and 18 seconds, achieving a grade of 95%. It includes a series of questions related to computer science and C programming, with correct answers indicated for each question. The quiz covers topics such as algorithms, variable declarations, and syntax errors.

Uploaded by

saivarun437
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)
26 views1 page

U1 Pps Quiz Part 1: Sun, Oct 27, 2024 - 12:27:38 PM

The document details the results of a quiz taken on October 27, 2024, with a completion time of 10 minutes and 18 seconds, achieving a grade of 95%. It includes a series of questions related to computer science and C programming, with correct answers indicated for each question. The quiz covers topics such as algorithms, variable declarations, and syntax errors.

Uploaded by

saivarun437
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/ 1

Home Dashboard My courses Sun, Oct 27, 2024 | 12:27:38 PM  2J 

U1 PPS QUIZ PART 1 cemepps24  U1 PPS QUIZ PART 1

Started on Sunday, 27 October 2024, 12:12 PM


State Finished
Completed on Sunday, 27 October 2024, 12:22 PM
Time taken 10 mins 18 secs
Grade 19.00 out of 20.00 (95%)

Question 1 G14.In computer science, algorithm refers to a pictorial representation of a flowchart.


Correct

Mark 1.00 out a. False 


of 1.00
b. True
Flag
question

The correct answer is: False

Question 2 G4.All keywords in C are in ____________


Correct

Mark 1.00 out a. None of the mentioned


of 1.00
b. CamelCase letters
Flag
question
c. LowerCase letters 
d. UpperCase letters

The correct answer is: LowerCase letters

Question 3 G6.What is the result of logical or relational expression in C?


Correct

Mark 1.00 out a. True or False


of 1.00
b. None of the mentioned
Flag
question c. 0 or 1 
d. 0 if an expression is false and any positive number if an expression is true

The correct answer is: 0 or 1

Question 4 G12.What is the output of this statement "printf("%d", (a++))"?


Correct

Mark 1.00 out a. The value of (a + 1)


of 1.00
b. Garbage
Flag
question c. The current value of a 
d. Error message

The correct answer is: The current value of a

Question 5 G2.What is the data type of the variable declared below: float pay_rate = 0;
Correct

Mark 1.00 out a. pay_rate


of 1.00
b. Undefined
Flag
question c. float 
d. 0

The correct answer is: float

Question 6 G5. Which of the following is true for variable names in C?


Correct

Mark 1.00 out a. Variable can be of any length


of 1.00
b. Variable names cannot start with a digit 
Flag
question
c. It is not an error to declare a variable to be one of the keywords(like goto, static)
d. They can contain alphanumeric characters as well as special characters

The correct answer is: Variable names cannot start with a digit

Question 7 G1.Which of the following are required when declaring a variable in C?


Correct

Mark 1.00 out a. Type, name, and value


of 1.00
b. Name only
Flag
question
c. Type only
d. Type and name 

The correct answer is: Type and name

Question 8 G17.An Algorithm represented in the form of programming languages is _________


Correct

Mark 1.00 out a. Flowchart


of 1.00
b. Program 
Flag
question
c. None
d. Pseudo code

The correct answer is: Program

Question 9 G18.What will be the output of the following C code?


Correct #include <stdio.h>
void main()
Mark 1.00 out
{
of 1.00
int a = 5, b = -7, c = 0, d;
Flag d = ++a && ++b || ++c;
question
printf("\n%d%d%d%d", a, b, c, d);
}

a. -6 -6 0 1
b. 6 -5 0 1
c. 6 -6 0 1 
d. 6 -6 0 0

The correct answer is: 6 -6 0 1

Question 10 G11.Syntax errors are caused by incorrectly typed source code


Correct

Mark 1.00 out a. True 


of 1.00
b. False
Flag
question

The correct answer is: True

Question 11 G7.Will compiler produce any compilation error if same header file is included two times?
Correct

Mark 1.00 out a. Yes


of 1.00
b. No 
Flag
question

The correct answer is: No

Question 12 G10.Find error/output in following code


Correct
int main ()
Mark 1.00 out {
of 1.00 int m = -10,n =20;
Flag n = ( m < 0) ? 0 : 1;
question printf( " %d %d ", m,n ) ;
}

a. 20 -10
b. -10 0 
c. 01
d. 10 20

The correct answer is: -10 0

Question 13 G19.What will be the output of the following C code?


Correct #include <stdio.h>
void main()
Mark 1.00 out
of 1.00 {
int a = -5;
Flag
int k = (a++, ++a);
question
printf("%d\n", k);
}

a. Undefined
b. 4
c. -5
d. -3 

The correct answer is: -3

Question 14 G3.Which of the following is not a valid C variable name?


Correct

Mark 1.00 out a. float rate;


of 1.00
b. int variable_count;
Flag
question c. int number;
d. int $main; 

The correct answer is: int $main;

Question 15 G15.Actual instructions in flowcharting are represented in __________


Correct

Mark 1.00 out A. Boxes 


of 1.00
B. Arrows
Flag
question
C. Circles
D. Lines

The correct answer is: Boxes

Question 16 G16.Flowcharts and Algorithms are used for


Correct

Mark 1.00 out a. Easy testing and Debugging


of 1.00
b. All 
Flag
question
c. Efficient Coding
d. Better Programming

The correct answer is: All

Question 17 G9.A program may never contain both syntax and logic errors.
Incorrect

Mark 0.00 out True 


of 1.00
False
Flag
question

The correct answer is 'False'.

Question 18 G20. Which among the following is not a bitwise operator?


Correct

Mark 1.00 out a. &


of 1.00
b. <<
Flag
question c. |
d. && 

The correct answer is: &&

Question 19 G13.What is the output of this statement "printf("%d", (--a))"?


Correct

Mark 1.00 out a. The value of (a - 1) 


of 1.00
b. Garbage
Flag
question c. Error message
d. The current value of a

The correct answer is: The value of (a - 1)

Question 20 G8.Is there any limit in adding no of header files in program?


Correct

Mark 1.00 out a. Yes


of 1.00
b. No 
Flag
question

The correct answer is: No

Finish review

Prev i o u s a c t i v i t y N ex t a c t i v i t y
Jump to...
C1P10 U1 PPS QUIZ PART 2

Follow us
 Contact site support

You are logged in as 24241A0330 JAKKULA
JAYA SAI KARTHIK (Log out)

Moodle LMS Incharge

You might also like