F1 C Programming

F1 C Programming

University

20 Qs

quiz-placeholder

Similar activities

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Basic Excel

Basic Excel

University

15 Qs

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

Programación Básica Prácticas Tema 2

Programación Básica Prácticas Tema 2

University

19 Qs

PythonProgramming

PythonProgramming

University

15 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

E-Commerce

E-Commerce

University - Professional Development

16 Qs

F1 C Programming

F1 C Programming

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sivakumar S

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?