Revision 2 C

Revision 2 C

University

17 Qs

quiz-placeholder

Similar activities

Java Programming

Java Programming

University

20 Qs

OOP - Quiz

OOP - Quiz

University

15 Qs

Linux 3-4

Linux 3-4

University

20 Qs

UAS Logika dan Algoritma Pemrograman

UAS Logika dan Algoritma Pemrograman

1st Grade - University

15 Qs

SLG IPC Week 7

SLG IPC Week 7

University

13 Qs

JavaScript

JavaScript

University

15 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Revision 2 C

Revision 2 C

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to call a function named add that takes two integers as arguments?

add(2, 3);

add(2, 3); return;

call add(2, 3);

call add();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a two-dimensional matrix declaration, the first subscript specifies the number of______________.

row

column

diagonal

line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions will return the first occurrence of a character in a string?

strfind()

strchr()

strloc()

strrchr()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is needed to use the printf() function in C?

stdio.h

conio.h

ctype.h

string.h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to concatenate two strings in C?

strcat()

append()

concatenate()

strmerge()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to accept input from the user in C?

input()

scanf()

getch()

output()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in C is used to find the length of a string?

strlen()

strlength()

size()

findlen()

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?