C PROGRAMMING

C PROGRAMMING

University

25 Qs

quiz-placeholder

Similar activities

CSE C Section

CSE C Section

University

20 Qs

C Programming Quiz(session 1)

C Programming Quiz(session 1)

University

20 Qs

Unit-2 Test-1

Unit-2 Test-1

University

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

Exercise1

Exercise1

University

30 Qs

Pointers

Pointers

University

20 Qs

Programming Concepts in C

Programming Concepts in C

University

20 Qs

C++ Programming

C++ Programming

University

20 Qs

C PROGRAMMING

C PROGRAMMING

Assessment

Quiz

Computers

University

Hard

Created by

Viswanathkani T

Used 55+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How would you round off a value from 1.66 to 2.0?
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
Point out the error in the following program 
No error
display() doesn't get invoked
display() is called before it is defined
None of these

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In which order do the following gets evaluated
1.Relational
2.Arithmetic
3.Logical
4.Assignment
2134
1234
4321
3214

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
What will be the output of the program?
Hello
Hi Hello
No output
Infinite loop

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How will you print \n on the screen?
printf("\n");
echo "\\n";
printf('\n');
printf("\\n");

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What function should be used to free the memory allocated by calloc() ?
dealloc();
malloc(variable_name, 0)
free();
memalloc(variable_name, 0)

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A good algorithm must be: 
replacable
simple 
open-ended
detailed

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?