F1 C Programming

F1 C Programming

University

20 Qs

quiz-placeholder

Similar activities

C - Structures

C - Structures

University

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Programming Concepts in C

Programming Concepts in C

University

20 Qs

Bubble Sort and Pointers

Bubble Sort and Pointers

University

20 Qs

Basic Python

Basic Python

University

20 Qs

Linked list 1

Linked list 1

University

20 Qs

TechnoFuzzle

TechnoFuzzle

University

20 Qs

Quiz Pemrograman Lanjut 2022/2023

Quiz Pemrograman Lanjut 2022/2023

University

20 Qs

F1 C Programming

F1 C Programming

Assessment

Quiz

Computers

University

Hard

Created by

Sivakumar S

Used 8+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Fill in the missing condition to ensure a loop runs exactly 5 times:

i <= 5

i != 5

i < 5

i >= 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the missing statement to declare a pointer to a function that takes two integers and returns a float?

float *func(int, int);

float (*func)(int, int);

float (func)(int, int);

float (*func())(int, int);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which control statement is missing to stop infinite execution in the following loop?

break

continue

return

goto

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To round off x (float), to an int value, the correct way to do is

y = (int)(x + 0.5)

y = int(x + 0.5)

y = (int)x + 0.5

y = (int)((int)x + 0.5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

128

-128

Compiler-dependent

None of these

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Pointer arithmetic is not possible on ___.

Integer pointers

Float pointers

Character pointers

Void pointers

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Find the output:

20

24

4

18

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?