Basics of C Programming - 1

Basics of C Programming - 1

University

40 Qs

quiz-placeholder

Similar activities

function in Python

function in Python

University

37 Qs

IOT_SARS

IOT_SARS

University

40 Qs

IT 121- Formative Assessment # 2

IT 121- Formative Assessment # 2

University

40 Qs

InfoMeraki2020

InfoMeraki2020

University

39 Qs

Java Control Flow and Collections

Java Control Flow and Collections

11th Grade - Professional Development

39 Qs

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - University

40 Qs

FINAL_EXAM (CFP_122)

FINAL_EXAM (CFP_122)

University

35 Qs

Structures and Pointers in C

Structures and Pointers in C

University

35 Qs

Basics of C Programming - 1

Basics of C Programming - 1

Assessment

Quiz

Computers

University

Medium

Created by

BVOCNMA 2019

Used 22+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following correctly shows the hierarchy of arithmetic operations in C?

/ + * -

* - / +

+ - / *

/ * + -

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

To print out 'a' as an integer and 'b' as a decimal, which of the following printf() statement will you use?

printf("%f %lf", a, b)

printf("%f %f", a, b)

printf("%d %f", a, b)

printf("%f %d", a, b)

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not logical operator?

&

&&

||

!

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not logical operator?

&

&&

||

!

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When does the code block following while(x<100) execute?

When x is less than one hundred

When x is greater than one hundred

When x is equal to one hundred

while it wishes

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Input/output function prototypes and macros are defined in which header file?

conio.h

stdlib.h

stdio.h

dos.h

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of this C code?

#include <stdio.h>

int main()

{

printf("Hello World! %d \n", x);

return 0;

}

Hello World! x;

Hello World! followed by a junk value

Compile time error

Hello World!

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?